Create users, groups, user_summary models
This commit is contained in:
parent
76229c8cc5
commit
3258aa1e0b
10 changed files with 76 additions and 0 deletions
7
app/models/group.rb
Normal file
7
app/models/group.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Group
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :group_name, type: String
|
||||
embeds_many :UserSummary
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue