Class: CreateEvents

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/forge/db/migrate/20130405172038_create_events.rb

Instance Method Summary collapse

Instance Method Details

#downObject



15
16
17
# File 'lib/forge/db/migrate/20130405172038_create_events.rb', line 15

def down
  drop_table :events
end

#upObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/forge/db/migrate/20130405172038_create_events.rb', line 2

def up
  create_table "events" do |t|
      t.string   "title"
      t.string   "location"
      t.text     "description"
      t.datetime "starts_at"
      t.datetime "ends_at"
      t.boolean  "published",   :default => false
      t.datetime "created_at"
      t.datetime "updated_at"
    end
end