ballalama3_app/db/migrate/1040_create_articles.rb
Nicolas Bally bc774b8159 initial
2016-12-01 10:54:16 +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