Add approval voting to budgets
Co-Authored-By: Javi Martín <javim@elretirao.net>
This commit is contained in:
committed by
Javi Martín
parent
009c33d4e5
commit
1e3e8c1304
6
db/migrate/20190418114431_add_approval_voting_fields.rb
Normal file
6
db/migrate/20190418114431_add_approval_voting_fields.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class AddApprovalVotingFields < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :budgets, :voting_style, :string, default: "knapsack"
|
||||
add_column :budget_headings, :max_ballot_lines, :integer, default: 1
|
||||
end
|
||||
end
|
||||
@@ -214,6 +214,7 @@ ActiveRecord::Schema.define(version: 20200519120717) do
|
||||
t.boolean "allow_custom_content", default: false
|
||||
t.text "latitude"
|
||||
t.text "longitude"
|
||||
t.integer "max_ballot_lines", default: 1
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.index ["group_id"], name: "index_budget_headings_on_group_id"
|
||||
@@ -360,6 +361,7 @@ ActiveRecord::Schema.define(version: 20200519120717) do
|
||||
t.text "description_drafting"
|
||||
t.text "description_publishing_prices"
|
||||
t.text "description_informing"
|
||||
t.string "voting_style", default: "knapsack"
|
||||
end
|
||||
|
||||
create_table "campaigns", id: :serial, force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user