5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 02:11:42 +00:00
panel/app/models/usuarie.rb

16 lines
460 B
Ruby
Raw Normal View History

2019-07-03 19:59:21 +00:00
# frozen_string_literal: true
2019-07-03 19:33:26 +00:00
# Usuarie de la plataforma
class Usuarie < ApplicationRecord
2019-07-05 23:55:59 +00:00
devise :invitable, :database_authenticatable,
2019-07-03 19:59:21 +00:00
:recoverable, :rememberable, :validatable,
:confirmable, :lockable, :registerable
validates_uniqueness_of :email
2019-07-03 22:04:50 +00:00
has_and_belongs_to_many :sites
2019-07-04 16:23:43 +00:00
has_and_belongs_to_many :sites_as_invitade,
class_name: 'Site',
join_table: 'invitades_sites'
2019-07-03 19:33:26 +00:00
end