cs_app/db/migrate/20141124230956_create_events.rb
Nicolas Bally 8a08ee35c8 initial
2015-02-22 14:36:30 +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