lib/combustion/database.rb in combustion-0.5.0 vs lib/combustion/database.rb in combustion-0.5.1

- old
+ new

@@ -62,10 +62,15 @@ if migrator.respond_to?(:migrations_paths) paths = migrator.migrations_paths end # Append the migrations inside the internal app's db/migrate directory paths << File.join(Rails.root, 'db/migrate') - migrator.migrate paths, nil + + if ActiveRecord::VERSION::STRING >= '3.1.0' + migrator.migrate paths, nil + else + paths.each { |path| migrator.migrate path, nil } + end end private def self.create_database(config)