Create users, groups, user_summary models
This commit is contained in:
parent
76229c8cc5
commit
3258aa1e0b
10 changed files with 76 additions and 0 deletions
8
app/models/user.rb
Normal file
8
app/models/user.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class User
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :user_id, type: BSON::ObjectId
|
||||
field :user_name, type: String
|
||||
field :user_description, type: String
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue