Skip to content

Commit

Permalink
Remove obsolete report columns from polls
Browse files Browse the repository at this point in the history
These columns are obsolete since commit 354b183, and its content was
migrated in version 1.0 with the task defined in commit 9ae0cbb.
  • Loading branch information
javierm committed Nov 7, 2019
1 parent f399802 commit 5ed308c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1222,8 +1222,6 @@
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"
Expand Down

0 comments on commit 5ed308c

Please sign in to comment.