vita_app/db/migrate/20151108201637_create_lang_articles.rb
Nicolas Bally 1d3af87d4c initial
2016-04-28 10:07:08 +02:00

25 lines
481 B
Ruby
Executable File

class CreateLangArticles < ActiveRecord::Migration
def change
create_table :lang_articles do |t|
t.datetime :published_at
t.string :title
t.string :slug
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.references :lang_site
t.references :article
t.timestamps null: false
end
end
end