Class: YDD::SchemaManager
- Inherits:
-
Object
- Object
- YDD::SchemaManager
- Defined in:
- lib/ydd/schema_manager.rb
Class Method Summary collapse
Class Method Details
.dump(path) ⇒ Object
4 5 6 7 8 |
# File 'lib/ydd/schema_manager.rb', line 4 def self.dump(path) File.open(path, "w") do |file| ActiveRecord::SchemaDumper.dump(YDD.connection, file) end end |
.load(path) ⇒ Object
10 11 12 |
# File 'lib/ydd/schema_manager.rb', line 10 def self.load(path) Kernel.load path if File.exists?(path) end |