Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
599 views
in Technique[技术] by (71.8m points)

ruby - How to disable db:schema:dump for migrations

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

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...