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:
Julianna Tetreault 2021-03-26 08:09:18 -06:00 committed by GitHub
parent 45a291047d
commit 11f1c9d487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View 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

View file

@ -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"