[deploy] Remove unused columns from pages (#7127)
This commit is contained in:
parent
8a5109349f
commit
e7cba1c750
3 changed files with 8 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue