Sha256: 1dd215a7d1afd36828460c1240a360091a5615b2f8c30101126b42d906f1080c

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

class CreateRelations < ActiveRecord::Migration[5.2]
  def change
    create_table :relations, id: false do |t|
      t.string     :name
      t.references :x, null: false
      t.references :y, null: false
      t.timestamps

      t.index :name
      t.index :x
      t.index :y
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
relation-0.2.3 db/migrate/20150810152808_relation.rb