Sha256: 09ce8f4ce2f6eb6d6276c26560d0dee6ae8cfc71c633e28772153cfadf0bdf17

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

module SchemaComments
  module Migrator
    def self.prepend(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/migrator.rb
schema_comments-0.4.2 lib/schema_comments/migrator.rb
schema_comments-0.4.1 lib/schema_comments/migrator.rb