Remove obsolete report columns from polls

These columns are obsolete since commit 354b183e, and its content was
migrated in version 1.0 with the task defined in commit 9ae0cbb2.
This commit is contained in:
Javi Martín
2019-11-07 20:32:27 +01:00
parent f399802b30
commit 5ed308c6f7
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"