2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/models/user_open_id.rb

25 lines
582 B
Ruby
Raw Normal View History

2013-05-24 12:35:14 +10:00
# == Schema Information
#
# Table name: user_open_ids
#
# id :integer not null, primary key
# user_id :integer not null
# email :string(255) not null
# url :string(255) not null
# created_at :datetime not null
# updated_at :datetime not null
# active :boolean not null
#
# Indexes
#
# index_user_open_ids_on_url (url)
#
2013-02-05 14:16:51 -05:00
class UserOpenId < ActiveRecord::Base
belongs_to :user
attr_accessible :email, :url, :user_id, :active
validates_presence_of :email
validates_presence_of :url
end