Sha256: 835b0964c44c021bc6549854f621a9d8922ed263ad76e13f1b34767c4c7986a5

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

require 'active_record'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/array/extract_options'

module DataMigrations
  autoload :Column,      'data_migrations/column'
  autoload :Instruction, 'data_migrations/instruction'
  autoload :Migration,   'data_migrations/migration'
  autoload :Table,       'data_migrations/table'

  def migrate_table(name, options, &block)
    Migration.new(name, options, &block).run!
  end
  alias :migrate_data :migrate_table

  ActiveRecord::Migration.send(:extend, self)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
data_migrations-0.0.1 lib/data_migrations.rb