Merge pull request #3827 from consul/remove_obsolete_report_columns

Remove obsolete report columns from polls
This commit is contained in:
Javier Martín
2019-11-07 22:01:26 +01:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
class RemoveOldStatsAndResultsEnabledColumns < ActiveRecord::Migration[5.0]
def change
remove_column :polls, :results_enabled, :boolean, default: false
remove_column :polls, :stats_enabled, :boolean, 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: 20191105184023) do
ActiveRecord::Schema.define(version: 20191107193003) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -1222,8 +1222,6 @@ ActiveRecord::Schema.define(version: 20191105184023) do
t.integer "author_id"
t.datetime "hidden_at"
t.string "slug"
t.boolean "results_enabled", default: false
t.boolean "stats_enabled", default: false
t.datetime "created_at"
t.datetime "updated_at"
t.integer "budget_id"