Cleaning schema.rb
19 Apr 12:17

Since apartment uses schema.rb as a source for new schemas, it is important to keep this file clean. Running migrations in local environment may tend to pollute the file.

However, there is a trick that helps to recreate the data with a minumum required content. Just run the following command:

./bin/rake db:drop db:create db:migrate RAILS_ENV=test


Empty! You must sign in to add comments.