From 69d2c14b4920bc72397d6db4062c7ba9442d79f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Wed, 20 Apr 2016 13:28:12 +0200 Subject: [PATCH] adds retired_at to proposals --- db/migrate/20160420105023_add_retired_to_proposals.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160420105023_add_retired_to_proposals.rb diff --git a/db/migrate/20160420105023_add_retired_to_proposals.rb b/db/migrate/20160420105023_add_retired_to_proposals.rb new file mode 100644 index 000000000..f818a9169 --- /dev/null +++ b/db/migrate/20160420105023_add_retired_to_proposals.rb @@ -0,0 +1,5 @@ +class AddRetiredToProposals < ActiveRecord::Migration + def change + add_column :proposals, :retired_at, :datetime, default: nil + end +end diff --git a/db/schema.rb b/db/schema.rb index 49f0011f2..aee822784 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # 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 enable_extension "plpgsql" @@ -260,6 +260,7 @@ ActiveRecord::Schema.define(version: 20160418172919) do t.integer "physical_votes", default: 0 t.tsvector "tsv" t.integer "geozone_id" + t.datetime "retired_at" end add_index "proposals", ["author_id", "hidden_at"], name: "index_proposals_on_author_id_and_hidden_at", using: :btree