boissier_app/db/migrate/20110430085356_create_promotions.rb
Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +02:00

18 lines
313 B
Ruby

# -*- encoding : utf-8 -*-
class CreatePromotions < ActiveRecord::Migration
def self.up
create_table :promotions do |t|
t.string :title
t.text :description
t.references :image_file
t.date :month
t.timestamps
end
end
def self.down
drop_table :promotions
end
end