Module: DataMapper::Migrations::YamlAdapter
- Defined in:
- lib/dm-migrations/adapters/dm-yaml-adapter.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/dm-migrations/adapters/dm-yaml-adapter.rb', line 8 def self.included(base) DataMapper.extend(Migrations::SingletonMethods) [ :Repository, :Model ].each do |name| DataMapper.const_get(name).send(:include, Migrations.const_get(name)) end end |
Instance Method Details
#destroy_model_storage(model) ⇒ Object
16 17 18 19 |
# File 'lib/dm-migrations/adapters/dm-yaml-adapter.rb', line 16 def destroy_model_storage(model) yaml_file(model).unlink if yaml_file(model).file? true end |