diff --git a/app/models/usuarie.rb b/app/models/usuarie.rb index 38372ef0..fc827e6b 100644 --- a/app/models/usuarie.rb +++ b/app/models/usuarie.rb @@ -1,3 +1,11 @@ +# frozen_string_literal: true + +# # Usuarie de la plataforma class Usuarie < ApplicationRecord + devise :database_authenticatable, + :recoverable, :rememberable, :validatable, + :confirmable, :lockable, :registerable + + validates_uniqueness_of :email end diff --git a/db/schema.rb b/db/schema.rb index 2fa39fab..02f60bf7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,17 +1,14 @@ -# This file is auto-generated from the current state of the database. -# Instead of editing this file, please use the migrations feature of -# Active Record to incrementally modify your database, and then -# regenerate this schema definition. +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. # -# Note that this schema.rb definition is the authoritative source for -# your database schema. If you need to create the application database -# on another system, you should be using db:schema:load, not running all -# the migrations from scratch. The latter is a flawed and unsustainable -# approach (the more migrations you'll amass, the slower it'll run and -# the greater likelihood for issues). +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). # -# It's strongly recommended that you check this file into your version -# control system. +# It's strongly recommended that you check this file into your version control system. ActiveRecord::Schema.define(version: 20_190_703_190_859) do create_table 'usuaries', force: :cascade do |t|