Datamapper problem "no such table"

Hi, this code used to work, but for some reason it won’t now:

[… load models]

DataMapper.setup(:default, “mysql://cm:[email protected]/cm”)
DataMapper.setup(:lite, “sqlite3:///home/tigre/cm.sqlite”)

DataMapper.repository(:lite) do
w = => “Foo”)

Now I get this error:

`execute_reader’: no such table: work_centers (DataObjects::SyntaxError)

the cm.sqlite file is created but is zero bytes long.
What am I doing wrong?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs