changing view for group_order_invoices
testing ui of goi restructuring
This commit is contained in:
parent
de6643722a
commit
90c5450525
52 changed files with 783 additions and 57 deletions
|
|
@ -6,6 +6,8 @@ class Group < ApplicationRecord
|
|||
|
||||
has_many :memberships, dependent: :destroy
|
||||
has_many :users, -> { where(deleted_at: nil) }, through: :memberships
|
||||
has_one :sepa_account_holder, dependent: :destroy
|
||||
accepts_nested_attributes_for :sepa_account_holder, allow_destroy: true
|
||||
|
||||
validates :name, presence: true, length: { in: 1..25 }
|
||||
validates :name, uniqueness: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue