From 3c8416e8637fecc0e8a652a0bb48b6889aa6cc79 Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 6 Apr 2016 19:18:10 +0200 Subject: [PATCH] Adds responsible_name to spending_proposals --- ...60406163649_add_responsible_name_to_spending_proposals.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160406163649_add_responsible_name_to_spending_proposals.rb diff --git a/db/migrate/20160406163649_add_responsible_name_to_spending_proposals.rb b/db/migrate/20160406163649_add_responsible_name_to_spending_proposals.rb new file mode 100644 index 000000000..5749400bb --- /dev/null +++ b/db/migrate/20160406163649_add_responsible_name_to_spending_proposals.rb @@ -0,0 +1,5 @@ +class AddResponsibleNameToSpendingProposals < ActiveRecord::Migration + def change + add_column :spending_proposals, :responsible_name, :string, limit: 60 + end +end diff --git a/db/schema.rb b/db/schema.rb index a031c51f5..4183e0246 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: 20160329160106) do +ActiveRecord::Schema.define(version: 20160406163649) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -314,6 +314,7 @@ ActiveRecord::Schema.define(version: 20160329160106) do t.datetime "unfeasible_email_sent_at" t.integer "cached_votes_up", default: 0 t.tsvector "tsv" + t.string "responsible_name", limit: 60 end add_index "spending_proposals", ["author_id"], name: "index_spending_proposals_on_author_id", using: :btree