Class: Combustion::Database::LoadSchema
- Inherits:
-
Object
- Object
- Combustion::Database::LoadSchema
- Defined in:
- lib/combustion/database/load_schema.rb
Constant Summary collapse
- UnknownSchemaFormat =
Class.new StandardError
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
6 7 8 |
# File 'lib/combustion/database/load_schema.rb', line 6 def self.call new.call end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/combustion/database/load_schema.rb', line 10 def call ActiveRecord::Schema.verbose = false case schema_format when :ruby load_ruby_schema when :sql load_sql_schema else raise UnknownSchemaFormat, "Unknown schema format: #{schema_format}" end end |