about summary refs log tree commit diff
path: root/app/models/sharekey.rb
blob: baa1c20a037d1c2d534524f9fc016ce20939155c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# == Schema Information
#
# Table name: sharekeys
#
#  id        :bigint(8)        not null, primary key
#  status_id :bigint(8)
#  key       :string
#

class Sharekey < ApplicationRecord
  belongs_to :status, inverse_of: :sharekey
  validates_uniqueness_of :status_id
end