28 lines
895 B
Ruby
28 lines
895 B
Ruby
class CreateLangArticles < ActiveRecord::Migration[6.0]
|
|
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, :default => false
|
|
t.references :image_file, index: true
|
|
t.boolean :title_cached, :default => false
|
|
t.string :tags_cache
|
|
t.string :tags_cache_slug
|
|
t.references :lang_site, index: true
|
|
t.references :article, index: true
|
|
t.string :html_title
|
|
t.string :fb_title
|
|
t.string :twitter_title
|
|
t.text :twitter_description
|
|
t.integer :without_text_image_file_id
|
|
t.references :slider_image_file, index: true
|
|
t.text :chapeau
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|