Sha256: c1171ab27990f42c04125f088ce059f5aeb7b24d4e1ad28f1905cdd7c46668ec

Contents?: true

Size: 281 Bytes

Versions: 442

Compression:

Stored size: 281 Bytes

Contents

class CreateAccepts < ActiveRecord::Migration
  def change
    create_table :accepts do |t|
      t.integer :basket_id
      t.integer :item_id
      t.integer :librarian_id

      t.timestamps
    end

    add_index :accepts, :basket_id
    add_index :accepts, :item_id
  end
end

Version data entries

442 entries across 439 versions & 24 rubygems

Version Path
enju_biblio-0.2.4 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_subject-0.2.3 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_manifestation_viewer-0.2.2 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_message-0.2.3 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_event-0.2.2 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_circulation-0.2.4 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_nii-0.2.1 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_subject-0.2.2 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_circulation-0.2.3 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_message-0.2.2 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_grid-0.2.0 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_manifestation_viewer-0.2.1 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_circulation-0.2.2 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_event-0.2.1 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_message-0.2.1 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_subject-0.2.1 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/20120319173203_create_accepts.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/20120319173203_create_accepts.rb