From 3c2c0fdff4b81fc6c2c66e174bb9e7187a1c7f85 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 3 Jul 2019 16:59:21 -0300 Subject: [PATCH] usuarie en devise --- app/models/usuarie.rb | 8 ++++++++ db/schema.rb | 21 +++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/app/models/usuarie.rb b/app/models/usuarie.rb index 38372ef..fc827e6 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 2fa39fa..02f60bf 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|