This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
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
|