Add a landing_page boolean to the Pages table (#13135) [deploy]
- Adds default: false to landing_page column - Adds null: false to landing_page column - Adds migration file and updated schema
This commit is contained in:
parent
45a291047d
commit
11f1c9d487
2 changed files with 7 additions and 1 deletions
5
db/migrate/20210325183834_add_landing_page_to_pages.rb
Normal file
5
db/migrate/20210325183834_add_landing_page_to_pages.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddLandingPageToPages < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :pages, :landing_page, :boolean, null: false, default: false
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_03_25_040245) do
|
||||
ActiveRecord::Schema.define(version: 2021_03_25_183834) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "citext"
|
||||
|
|
@ -828,6 +828,7 @@ ActiveRecord::Schema.define(version: 2021_03_25_040245) do
|
|||
t.datetime "created_at", null: false
|
||||
t.string "description"
|
||||
t.boolean "is_top_level_path", default: false
|
||||
t.boolean "landing_page", default: false, null: false
|
||||
t.text "processed_html"
|
||||
t.string "slug"
|
||||
t.string "social_image"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue