Skip to content

Commit

Permalink
Run migrations after schema load.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Jan 14, 2012
1 parent d7a6836 commit de7ba58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/combustion.rb
Expand Up @@ -14,6 +14,8 @@ def self.initialize!(*modules)

silence_stream(STDOUT) do
load "#{Rails.root}/db/schema.rb"
ActiveRecord::Migrator.migrate ActiveRecord::Migrator.migrations_paths,
nil
end if modules.include?('active_record') || modules.include?(:active_record)

RSpec.configure do |config|
Expand Down

0 comments on commit de7ba58

Please sign in to comment.