diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-22 20:40:03 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-22 20:40:03 +0300 |
commit | 98ee4a1fa73183cacf6c470b56e34afccec1c5dc (patch) | |
tree | aeca619c63164b72fa4538fe7b0a498982740c52 /app/models/identity.rb | |
parent | a5b255fbdfcd01f355de2dca76e379e12b43d6e6 (diff) |
Annotate models
Diffstat (limited to 'app/models/identity.rb')
-rw-r--r-- | app/models/identity.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/models/identity.rb b/app/models/identity.rb index 5fb1850c30b..c7cdb63e3d2 100644 --- a/app/models/identity.rb +++ b/app/models/identity.rb @@ -1,5 +1,15 @@ +# == Schema Information +# +# Table name: identities +# +# id :integer not null, primary key +# extern_uid :string(255) +# provider :string(255) +# user_id :integer +# + class Identity < ActiveRecord::Base belongs_to :user validates :extern_uid, allow_blank: true, uniqueness: {scope: :provider} -end
\ No newline at end of file +end |