Sha256: ad1dae850a9ba4955fd51c667c88194f4385aa4cd1b3aec07da3000a105efbd4
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
class CreateCheckins < ActiveRecord::Migration[5.1] 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.4.0.beta.1 | spec/dummy/db/migrate/032_create_checkins.rb |