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
7 8 9 10 11 12 |
# File 'lib/dm-migrations/adapters/dm-yaml-adapter.rb', line 7 def self.included(_base) DataMapper.extend(Migrations::SingletonMethods) %i(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
15 16 17 18 |
# File 'lib/dm-migrations/adapters/dm-yaml-adapter.rb', line 15 def destroy_model_storage(model) yaml_file(model).unlink if yaml_file(model).file? true end |