Sha256: 9347f2bb6659ac7b7e45c09ec0423252cc454d002f83940c0218462fc3f6c912

Contents?: true

Size: 308 Bytes

Versions: 3

Compression:

Stored size: 308 Bytes

Contents

module SchemaComments
  module Migration
    def self.prepended(mod)
      mod.singleton_class.prepend(ClassMethods)
    end

    module ClassMethods
      def migrate(*args, &block)
        SchemaComments::SchemaComment.yaml_access do
          super(*args, &block)
        end
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
schema_comments-0.4.3 lib/schema_comments/migration.rb
schema_comments-0.4.2 lib/schema_comments/migration.rb
schema_comments-0.4.1 lib/schema_comments/migration.rb