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

Version Path
ardm-migrations-1.2.1 lib/dm-migrations/adapters/dm-yaml-adapter.rb
ardm-migrations-1.2.0 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.2.0 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.2.0.rc2 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.2.0.rc1 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.1.0 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.1.0.rc3 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.1.0.rc2 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.1.0.rc1 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.0.2 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.0.1 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-hibernate-migrations-1.0.0 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.0.0 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.0.0.rc3 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.0.0.rc2 lib/dm-migrations/adapters/dm-yaml-adapter.rb
dm-migrations-1.0.0.rc1 lib/dm-migrations/adapters/dm-yaml-adapter.rb