Class: CreateProjects

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/trackington/db/migrate/20160209100247_create_projects.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
# File 'lib/trackington/db/migrate/20160209100247_create_projects.rb', line 2

def change
  create_table :projects do |t|
    t.string :description
    t.string :title
    t.boolean :public, default: false
  end
end