-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.md~
More file actions
44 lines (26 loc) · 788 Bytes
/
README.md~
File metadata and controls
44 lines (26 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# README
This README would normally document whatever steps are necessary to get the
application up and running.
Things you may want to cover:
* Ruby version
* System dependencies
* Configuration
* Database creation
* Database initialization
* How to run the test suite
* Services (job queues, cache servers, search engines, etc.)
* Deployment instructions
* ...
class Groupmembers < ApplicationRecord
belongs_to :user, foreign_key => "member_id"
belongs_to :group, foreign_key => "group_id"
validates_uniqueness_of :group_id, :scope => :member_id
end
class CreateGroupMember < ActiveRecord::Migration[5.2]
def change
create_table :items do |t|
t.integer :member_id
t.integer :group_id
end
end
end