Class: CreateCabinets

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/tmis/engine/migrations/4_create_cabinets.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



3
4
5
6
7
8
9
10
11
# File 'lib/tmis/engine/migrations/4_create_cabinets.rb', line 3

def change
  create_table :cabinets do |t|
    t.string :title
    t.boolean :stub, default: false
    t.boolean :with_computers, default: false

    t.timestamps
  end
end