users_groups.rb 510 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
2
# == Schema Information
#
3
# Table name: group_members
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
4
#
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5
6
7
8
#  id                 :integer          not null, primary key
#  group_access       :integer          not null
#  group_id           :integer          not null
#  user_id            :integer          not null
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
9
10
#  created_at         :datetime
#  updated_at         :datetime
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
11
#  notification_level :integer          default(3), not null
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
12
13
#

14
15
FactoryGirl.define do
  factory :users_group do
16
    group_access { GroupMember::OWNER }
17
18
    group
    user
19
20
  end
end