Displaying 1 result from an estimated 1 matches for "work_centers".
2011 Dec 23
0
Datamapper problem "no such table"
...inalize
DataMapper.repository(:lite).auto_migrate!
DataMapper.repository(:lite) do
w = WorkCenter.new(:name => "Foo")
w.save
end
Now I get this error:
/usr/lib/ruby/gems/1.9.1/gems/dm-do-adapter-1.2.0/lib/dm-do-adapter/adapter.rb:147:in
`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?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send emai...