[deploy] Remove unused columns from pages (#7127)

This commit is contained in:
rhymes 2020-04-08 09:54:10 +02:00 committed by GitHub
parent 8a5109349f
commit e7cba1c750
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View file

@ -1,9 +1,4 @@
class Page < ApplicationRecord
self.ignored_columns = %w[
group
group_order_number
]
TEMPLATE_OPTIONS = %w[contained full_within_layout].freeze
validates :title, presence: true

View file

@ -0,0 +1,8 @@
class RemoveUnusedColumnsFromPages < ActiveRecord::Migration[5.2]
def change
safety_assured do
remove_column :pages, :group, :string
remove_column :pages, :group_order_number, :integer
end
end
end

View file

@ -745,8 +745,6 @@ ActiveRecord::Schema.define(version: 2020_04_07_091449) do
t.text "body_markdown"
t.datetime "created_at", null: false
t.string "description"
t.string "group"
t.integer "group_order_number"
t.boolean "is_top_level_path", default: false
t.text "processed_html"
t.string "slug"