Files
grecia/db/migrate/20170316174351_create_site_customization_pages.rb
Javi Martín 55addaa58a Apply rubocop rules to migration files
There are some rules which only affect migration files, and we cannot
enable them if we're excluding those files from being inspected.

We're also changing migrations related to the Rails/TimeZone rule
slightly because these fields were already changed afterwards, so we
aren't changing the schema.
2019-10-24 20:35:13 +02:00

16 lines
404 B
Ruby

class CreateSiteCustomizationPages < ActiveRecord::Migration[4.2]
def change
create_table :site_customization_pages do |t|
t.string :slug, null: false
t.string :title, null: false
t.string :subtitle
t.text :content
t.boolean :more_info_flag
t.boolean :print_content_flag
t.string :status, default: "draft"
t.timestamps null: false
end
end
end