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

19 lines
355 B
Ruby

# -*- encoding : utf-8 -*-
class CreateArticles < ActiveRecord::Migration
def self.up
create_table :articles do |t|
t.string :title
t.string :slug
t.text :description
t.references :image_file
t.boolean :enabled
t.references :folder
t.timestamps
end
end
def self.down
drop_table :articles
end
end