adds retired_at to proposals

This commit is contained in:
Juanjo Bazán
2016-04-20 13:28:12 +02:00
parent a8bc3095b4
commit 69d2c14b49
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddRetiredToProposals < ActiveRecord::Migration
def change
add_column :proposals, :retired_at, :datetime, default: nil
end
end

View File

@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160418172919) do ActiveRecord::Schema.define(version: 20160420105023) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@@ -260,6 +260,7 @@ ActiveRecord::Schema.define(version: 20160418172919) do
t.integer "physical_votes", default: 0 t.integer "physical_votes", default: 0
t.tsvector "tsv" t.tsvector "tsv"
t.integer "geozone_id" t.integer "geozone_id"
t.datetime "retired_at"
end end
add_index "proposals", ["author_id", "hidden_at"], name: "index_proposals_on_author_id_and_hidden_at", using: :btree add_index "proposals", ["author_id", "hidden_at"], name: "index_proposals_on_author_id_and_hidden_at", using: :btree