Add break to ordergroup

In some foodcoops it is possible that ordergroups make a break. During that
they e.g. pay reduced or no membership fees and do not need to do work for
the foodcoop. This new fields make this visible to all members.
This commit is contained in:
Patrick Gansterer 2016-03-04 17:07:24 +01:00
parent 14e2fd179e
commit 253512eb51
7 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,6 @@
class AddBreakToGroup < ActiveRecord::Migration
def change
add_column :groups, :break_start, :date
add_column :groups, :break_end, :date
end
end

View file

@ -141,6 +141,8 @@ ActiveRecord::Schema.define(version: 20160217194036) do
t.integer "next_weekly_tasks_number", limit: 4, default: 8
t.boolean "ignore_apple_restriction", default: false
t.boolean "role_invoices", default: false, null: false
t.date "break_start"
t.date "break_end"
end
add_index "groups", ["name"], name: "index_groups_on_name", unique: true, using: :btree