jeremyevans/sequel — Issue #424: Multiple database for the same model
Author: jingweno
Created: 2012-01-16 08:08:07+00:00
State: open

Hi,

i am trying to use the same model for different databases. But the db is defined as class variable:

```ruby
class Tag < Sequel::Model(db)
end
```

This prevents me to swap the db for the 2nd one. I am looking for something like this in Datamapper:

```ruby
DataMapper.repository(:repository_one){ MyModel.all }
```

Could you give me a pointer?