Sha256: 7434914fc291f07e9b0ec5ba227d9424238967f1c1790c061dc516560218ec7d
Contents?: true
Size: 548 Bytes
Versions: 16
Compression:
Stored size: 548 Bytes
Contents
require 'dm-migrations/auto_migration' require 'dm-migrations/adapters/dm-do-adapter' module DataMapper module Migrations module YamlAdapter 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 # @api semipublic def destroy_model_storage(model) yaml_file(model).unlink if yaml_file(model).file? true end end end end
Version data entries
16 entries across 16 versions & 3 rubygems