Sha256: e19c9bcf5462b6f3c4c442c7fd277317a740fbf2b0c3dc27511640af2945d0e6
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
class CreateCheckins < ActiveRecord::Migration[5.0] def self.up create_table :checkins do |t| t.integer :item_id, null: false t.integer :librarian_id t.integer :basket_id t.timestamps end add_index :checkins, :item_id add_index :checkins, :librarian_id add_index :checkins, :basket_id end def self.down drop_table :checkins end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_seed-0.3.0.beta.4 | spec/dummy/db/migrate/032_create_checkins.rb |