Ruby on Rails Friday, January 23, 2015



On Friday, January 23, 2015 at 4:33:21 PM UTC, Jan Lühr wrote:
Hello folks,

I've some issues with 
rake db:structure:dump and rails 4.2.0

If config.active_record.schema_format = :ruby,  rake db:structure:dump will generate structure.sql nevertheless - tests will fail because of a missing schema.rb file
(/home/jan/RubymineProjects/cdb3/db/schema.rb doesn't exist yet. Run `rake db:migrate` to create it, then try again. If you do not intend to use a database, you should instead alter /home/jan/RubymineProjects/cdb3/config/application.rb to limit the frameworks that will be loaded.
Started)

What's wrong here? 


db:structure:dump always generates structure.sql - the schema_format settings controls whether it is invoked at all (or whether db:schema:dump is called). (See https://github.com/rails/rails/blob/4-2-stable/activerecord/lib/active_record/railties/databases.rake#L48). Was schema_format previously set to :sql ?

Fred 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9ee4a76f-99a3-4b9a-9c57-d8589b89e68f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment