Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable db:schema:dump for migrations

Tags:

I dont want Rails 3 to generate my schema every time I do migration. How to properly disable it?

Thanks

like image 241
lzap Avatar asked Jun 23 '11 11:06

lzap


1 Answers

For anyone who is still looking for a way to disable the db dump after migration a configuration is now available in rails 4 which can be set to false like this:

config.active_record.dump_schema_after_migration = false 

will prevent it. The configuration has been added in this change - https://github.com/rails/rails/pull/13948

like image 144
ZX12R Avatar answered Sep 20 '22 13:09

ZX12R