Sha256: 8dd9baa1aced6484c8a823d99963580187849e365f17ea4fda4bd996c0057b86

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

class CreateJobs < ActiveRecord::Migration
  def change
    create_table :relationships do |t|
      t.string :name
      t.references :person_from
      t.references :person_to
      t.timestamps null: false

      t.index [:person_from, :person_to, :name], name: 'relationships_person_lookup'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kadmin-0.1.4 test/dummy/db/migrate/20161006121212_create_relationships.rb