add models for Project, Task, Note, Category
This commit is contained in:
@@ -6,6 +6,8 @@ class Organization < ApplicationRecord
|
||||
|
||||
after_create :create_schema
|
||||
before_destroy :drop_schema
|
||||
has_many :users, dependent: :destroy
|
||||
has_many :projects, through: :users
|
||||
|
||||
def schema_name
|
||||
"org_#{id.to_s.gsub('-', '_')}"
|
||||
|
||||
Reference in New Issue
Block a user