Add pickups role
This commit is contained in:
parent
4c41a99fde
commit
ac11ba1cc1
14 changed files with 42 additions and 15 deletions
5
db/migrate/20171111000000_add_role_pickups_to_group.rb
Normal file
5
db/migrate/20171111000000_add_role_pickups_to_group.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddRolePickupsToGroup < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :groups, :role_pickups, :boolean, default: false, null: false
|
||||
end
|
||||
end
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20171110000000) do
|
||||
ActiveRecord::Schema.define(version: 20171111000000) do
|
||||
|
||||
create_table "article_categories", force: :cascade do |t|
|
||||
t.string "name", limit: 255, default: "", null: false
|
||||
|
|
@ -170,6 +170,7 @@ ActiveRecord::Schema.define(version: 20171110000000) do
|
|||
t.boolean "role_invoices", default: false, null: false
|
||||
t.date "break_start"
|
||||
t.date "break_end"
|
||||
t.boolean "role_pickups", default: false, null: false
|
||||
end
|
||||
|
||||
add_index "groups", ["name"], name: "index_groups_on_name", unique: true, using: :btree
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ administrators = Workgroup.create(
|
|||
:role_admin => true,
|
||||
:role_finance => true,
|
||||
:role_article_meta => true,
|
||||
:role_pickups => true,
|
||||
:role_suppliers => true,
|
||||
:role_orders => true
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue