Sha256: d6efb8394d9161115efad45d724d9456db1af1b1d5486c70e2fc057c3191d5f6

Contents?: true

Size: 304 Bytes

Versions: 161

Compression:

Stored size: 304 Bytes

Contents

class CreateCreates < ActiveRecord::Migration[4.2]
  def change
    create_table :creates do |t|
      t.references :agent, null: false
      t.references :work, null: false
      t.integer :position
      t.timestamps
    end
    add_index :creates, :agent_id
    add_index :creates, :work_id
  end
end

Version data entries

161 entries across 161 versions & 19 rubygems

Version Path
enju_biblio-0.3.0.beta.2 db/migrate/015_create_creates.rb