Re: Changing the database from mysql to sqlite3 - need help

truetype
Sun, 27 Jan 2008 19:43:10 -0000

I found solution.

The reason why rake aborted was that the environment.rb had some
observers set up. It seems that these observers tried to communicate
with a model, which table had not been created. That''s how it should
be though - you can''t have a table for a model in the database, if you
don''t have the database. And the error occurred when I was trying to
run rake db:create. So, it seems now that the only solution is to
comment observers in the environment.rb before creating the database
and comment them when the database is created, which is a little
stupid - who knows how much times I would need to drop database and
create it again and now I need to comment and uncomment observers each
time?

Does anyone know better solution?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---