DataMapper::Migrations::YamlAdapter

Public Class Methods

included(base) click to toggle source
# 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

Public Instance Methods

destroy_model_storage(model) click to toggle source

@api semipublic

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.