cs_app/db/migrate/1040_create_articles.rb
Nicolas Bally 8a08ee35c8 initial
2015-02-22 14:36:30 +01:00

24 lines
416 B
Ruby

class CreateArticles < ActiveRecord::Migration
def change
create_table :articles do |t|
t.datetime :published_at
t.string :title
t.string :slug
t.string :tag
t.text :description
t.text :keywords
t.boolean :enabled
t.references :image_file
t.boolean :title_cached
t.string :tags_cache
t.string :tags_cache_slug
t.integer :category_id
t.timestamps
end
end
end