mailr/db/migrate/20110906094129_create_events.rb

20 lines
348 B
Ruby
Raw Normal View History

2011-09-09 22:10:25 +02:00
class CreateEvents < ActiveRecord::Migration
def self.up
create_table :events do |t|
t.integer :user_id
t.integer :priority
t.text :description
t.string :category
t.datetime :start
t.datetime :stop
t.boolean :allday
t.timestamps
end
end
def self.down
drop_table :events
end
end