Sha256: 756b8422dce8319f265965c269d063cb88c1af695c68a8fc01287c24bb178697

Contents?: true

Size: 284 Bytes

Versions: 7

Compression:

Stored size: 284 Bytes

Contents

migration_class =
  if ActiveRecord::VERSION::MAJOR >= 5
    ActiveRecord::Migration[4.2]
  else
    ActiveRecord::Migration
  end

class CreateLogOther < migration_class
  def change
    create_table :log_others do |t|
      t.references :post
      t.string :note
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
archiving-0.6.1 test/dummy/db/migrate/20161103093656_create_log_other.rb
archiving-0.6.0 test/dummy/db/migrate/20161103093656_create_log_other.rb
archiving-0.5.0 test/dummy/db/migrate/20161103093656_create_log_other.rb
archiving-0.4.4 test/dummy/db/migrate/20161103093656_create_log_other.rb
archiving-0.4.3 test/dummy/db/migrate/20161103093656_create_log_other.rb
archiving-0.4.1 test/dummy/db/migrate/20161103093656_create_log_other.rb
archiving-0.4.0 test/dummy/db/migrate/20161103093656_create_log_other.rb