Currently the `db:migrate` rake task runs `dump` at the end which dumps the database structure to `schema.rb` / `structure.sql`. This will be useful in development environment but I can't see a reason why this should run in production environment. Removing this step in production would make deployments faster, I believe. Do others think that this should be fixed ?[Rails code that invokes `dump`]( https://github.com/rails/rails/blob/8a5b480ebb46215210294b87a7ed9f1d8a032312/activerecord/lib/active_record/railties/databases.rake#L37 )
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.
Currently the `db:migrate` rake task runs `dump` at the end which dumps the database structure to `schema.rb` / `structure.sql`. This will be useful in development environment but I can't see a reason why this should run in production environment. Removing this step in production would make deployments faster, I believe. Do others think that this should be fixed ?[Rails code that invokes `dump`]( https://github.com/rails/rails/blob/8a5b480ebb46215210294b87a7ed9f1d8a032312/activerecord/lib/active_record/railties/databases.rake#L37 )
--
Adding support for this in principle makes sense to me. Since we want the file to be generated in some environments an not in others, a generated flag would probably make sense. A flag could also support the use case explained by Seth, since he would just toggle it in config/environments/production.rb (say).
--