Sha256: 9944ebc5bb235c6913101f74d202264b89d087ed3ac9118fead4aa0f438515c4

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

class CreateCreates < ActiveRecord::Migration
  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

1 entries across 1 versions & 1 rubygems

Version Path
enju_seed-0.3.0.beta.1 spec/dummy/db/migrate/015_create_creates.rb