Sha256: 0b90d3026a31aefc1ee822b0695967c063661dbe59d18d170127fc5816303532

Contents?: true

Size: 307 Bytes

Versions: 275

Compression:

Stored size: 307 Bytes

Contents

class CreateCreates < ActiveRecord::Migration
  def change
    create_table :creates do |t|
      t.references :patron, :null => false
      t.references :work, :null => false
      t.integer :position
      t.timestamps
    end
    add_index :creates, :patron_id
    add_index :creates, :work_id
  end
end

Version data entries

275 entries across 275 versions & 14 rubygems

Version Path
enju_circulation-0.1.0.pre29 spec/dummy/db/migrate/015_create_creates.rb
enju_flower-0.1.0.pre11 spec/dummy/db/migrate/015_create_creates.rb
enju_ndl-0.1.0.pre25 spec/dummy/db/migrate/015_create_creates.rb
enju_flower-0.1.0.pre10 spec/dummy/db/migrate/015_create_creates.rb
enju_biblio-0.1.0.pre42 db/migrate/015_create_creates.rb
enju_leaf-1.1.0.rc3 spec/dummy/db/migrate/015_create_creates.rb
enju_library-0.1.0.pre24 spec/dummy/db/migrate/015_create_creates.rb
enju_subject-0.1.0.pre20 spec/dummy/db/migrate/015_create_creates.rb
enju_oai-0.1.0.pre10 spec/dummy/db/migrate/015_create_creates.rb
enju_circulation-0.1.0.pre28 spec/dummy/db/migrate/015_create_creates.rb
enju_leaf-1.1.0.rc2 spec/dummy/db/migrate/015_create_creates.rb
enju_ndl-0.1.0.pre24 spec/dummy/db/migrate/015_create_creates.rb
enju_biblio-0.1.0.pre41 db/migrate/015_create_creates.rb
enju_circulation-0.1.0.pre27 spec/dummy/db/migrate/015_create_creates.rb
enju_flower-0.1.0.pre9 spec/dummy/db/migrate/015_create_creates.rb
enju_circulation-0.1.0.pre26 spec/dummy/db/migrate/015_create_creates.rb
enju_library-0.1.0.pre23 spec/dummy/db/migrate/015_create_creates.rb
enju_ndl-0.1.0.pre23 spec/dummy/db/migrate/015_create_creates.rb
enju_subject-0.1.0.pre19 spec/dummy/db/migrate/015_create_creates.rb
enju_biblio-0.1.0.pre40 db/migrate/015_create_creates.rb