17 lines
266 B
Ruby
17 lines
266 B
Ruby
|
class CreateEvents < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
create_table :events do |t|
|
||
|
t.string :title
|
||
|
t.text :details
|
||
|
t.references :item
|
||
|
t.string :color
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :events
|
||
|
end
|
||
|
end
|