lib/combustion/database.rb in combustion-0.5.5 vs lib/combustion/database.rb in combustion-0.6.0

- old
+ new

@@ -2,13 +2,13 @@ module Databases # end class Database - def self.setup(adapter = nil) - Combustion::Database::Reset.call adapter - Combustion::Database::LoadSchema.call - Combustion::Database::Migrate.call + def self.setup(options = {}) + Combustion::Database::Reset.call if options.fetch(:database_reset, true) + Combustion::Database::LoadSchema.call if options.fetch(:load_schema, true) + Combustion::Database::Migrate.call if options.fetch(:database_migrate, true) end end end require 'combustion/database/load_schema'