Karthik l Bhat wrote in post #976157: > Hi guys , I am stuck at a particular situation . When I run > rake db:test:clone_structure ,the test db is not copying the views that > are in the development db.So is there any solution for this problem so > that I can get the views in test db also . I have tried using rake > db:test:purge and rake db:test:clone as well. But it doesn't support me > as well. > > Hope I get some suggestions here ,
The problem is probably that the views aren't getting written to the db/schema.rb file, which is where Rake's clone tasks get there DB structure info from. I'd recommend installing the rails_sql_views plugin, then doing rake db:schema:dump to get all the views into the schema file. If that doesn't work, maybe you should set the schema dumper format to :sql. > > Thanks in Advance . Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org Sent from my iPhone -- 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 email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.