diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 22:51:03 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 22:51:03 +0100 |
commit | 648826721f13ee4309a11638e538d96006648b39 (patch) | |
tree | 9e2cb1b728208671c4d653d32223a02d19f3fe82 /app/models/user_callout.rb | |
parent | 838cc0907c963a025553d639283b3bbf8140dae8 (diff) | |
download | gitlab-ce-648826721f13ee4309a11638e538d96006648b39.tar.gz |
Rename Callout to UserCallout
Diffstat (limited to 'app/models/user_callout.rb')
-rw-r--r-- | app/models/user_callout.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/user_callout.rb b/app/models/user_callout.rb new file mode 100644 index 00000000000..8b31aa6fa5c --- /dev/null +++ b/app/models/user_callout.rb @@ -0,0 +1,6 @@ +class UserCallout < ActiveRecord::Base + belongs_to :user + + validates :user, presence: true + validates :feature_name, presence: true, uniqueness: { scope: :user_id } +end |