Created
April 8, 2014 14:35
-
-
Save kenton/10134254 to your computer and use it in GitHub Desktop.
Automate migrations in specs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in spec_helper.rb or wherever your testing framework has initialization code | |
if ActiveRecord::Migrator.needs_migration? | |
ActiveRecord::Migrator.migrate(File.join(Rails.root, 'db/migrate')) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment