Sha256: 3d300aff6024065a0725b50f39d5a2be9ed474d5514a3e65efac8112d9d3c68b

Contents?: true

Size: 293 Bytes

Versions: 412

Compression:

Stored size: 293 Bytes

Contents

class CreateOwns < ActiveRecord::Migration
  def change
    create_table :owns do |t|
      t.references :agent, :null => false
      t.references :item, :null => false
      t.integer :position
      t.timestamps
    end
    add_index :owns, :agent_id
    add_index :owns, :item_id
  end
end

Version data entries

412 entries across 404 versions & 22 rubygems

Version Path
enju_leaf-1.2.1 spec/dummy/db/migrate/012_create_owns.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/dummy/db/migrate/012_create_owns.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/dummy/db/migrate/012_create_owns.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/db/migrate/012_create_owns.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/dummy/db/migrate/012_create_owns.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_manifestation_viewer-0.2.0/spec/dummy/db/migrate/012_create_owns.rb
enju_library-0.2.2 spec/dummy/db/migrate/012_create_owns.rb
enju_seed-0.2.1 spec/dummy/db/migrate/012_create_owns.rb
enju_biblio-0.2.1 db/migrate/012_create_owns.rb
enju_library-0.2.1 spec/dummy/db/migrate/012_create_owns.rb
enju_circulation-0.2.1 spec/dummy/db/migrate/012_create_owns.rb
enju_question-0.2.0 spec/dummy/db/migrate/012_create_owns.rb
enju_inventory-0.2.0 spec/dummy/db/migrate/012_create_owns.rb
enju_seed-0.3.0.beta.2 spec/dummy/db/migrate/012_create_owns.rb
enju_purchase_request-0.2.0 spec/dummy/db/migrate/012_create_owns.rb
enju_bookmark-0.2.0 spec/dummy/db/migrate/012_create_owns.rb
enju_loc-0.2.0 spec/dummy/db/migrate/012_create_owns.rb
enju_manifestation_viewer-0.2.0 spec/dummy/db/migrate/012_create_owns.rb
enju_circulation-0.2.0 spec/dummy/db/migrate/012_create_owns.rb
enju_message-0.2.0 spec/dummy/db/migrate/012_create_owns.rb