Adds all_geozones to poll_questions

This commit is contained in:
kikito
2016-11-07 16:27:34 +01:00
parent f821d7beb7
commit 09cb25af30
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddAllGeozonesToPollQuestions < ActiveRecord::Migration
def change
add_column :poll_questions, :all_geozones, :boolean, default: false
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20161028143204) do
ActiveRecord::Schema.define(version: 20161107124207) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -309,6 +309,7 @@ ActiveRecord::Schema.define(version: 20161028143204) do
t.datetime "hidden_at"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "all_geozones", default: false
end
add_index "poll_questions", ["author_id"], name: "index_poll_questions_on_author_id", using: :btree