Skip to content

Commit ea7c179

Browse files
authored
DEV: Update plugin annotations (#82)
1 parent 4b0b652 commit ea7c179

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

app/models/teambuild_target.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,21 @@ def default_position
2323
self.position = (TeambuildTarget.maximum(:position) || 0) + 1
2424
end
2525
end
26+
27+
# == Schema Information
28+
#
29+
# Table name: teambuild_targets
30+
#
31+
# id :bigint not null, primary key
32+
# name :string not null
33+
# target_type_id :integer not null
34+
# group_id :integer
35+
# position :integer not null
36+
# created_at :datetime not null
37+
# updated_at :datetime not null
38+
#
39+
# Indexes
40+
#
41+
# index_teambuild_targets_on_name (name) UNIQUE
42+
# index_teambuild_targets_on_position (position) UNIQUE
43+
#

app/models/teambuild_target_user.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,19 @@ class TeambuildTargetUser < ActiveRecord::Base
55
belongs_to :teambuild_target
66
belongs_to :teambuild_target_user, class_name: "User"
77
end
8+
9+
# == Schema Information
10+
#
11+
# Table name: teambuild_target_users
12+
#
13+
# id :bigint not null, primary key
14+
# user_id :integer not null
15+
# teambuild_target_id :bigint not null
16+
# target_user_id :integer not null
17+
# created_at :datetime not null
18+
# updated_at :datetime not null
19+
#
20+
# Indexes
21+
#
22+
# teambuild_unique_choice (user_id,teambuild_target_id,target_user_id) UNIQUE
23+
#

0 commit comments

Comments
 (0)