diaspora/app/models/o_auth_application.rb
2016-01-04 16:49:16 +09:00

9 lines
225 B
Ruby

class OAuthApplication < ActiveRecord::Base
belongs_to :user
validates :user_id, presence: true
validates :client_id, presence: true, uniqueness: true
validates :client_secret, presence: true
has_many :tokens
end