php_app/db/migrate/20141124230956_create_events.rb
Nicolas Bally 5cf3a3e83d initial
2014-11-25 22:56:20 +01:00

14 lines
264 B
Ruby

class CreateEvents < ActiveRecord::Migration
def change
create_table :events do |t|
t.string :title
t.string :slug
t.date :start_at
t.text :description
t.references :image_file, index: true
t.timestamps
end
end
end