mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 04:51:43 +00:00
usuarie en devise
This commit is contained in:
parent
192efb7b6f
commit
3c2c0fdff4
2 changed files with 17 additions and 12 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
#
|
||||||
# Usuarie de la plataforma
|
# Usuarie de la plataforma
|
||||||
class Usuarie < ApplicationRecord
|
class Usuarie < ApplicationRecord
|
||||||
|
devise :database_authenticatable,
|
||||||
|
:recoverable, :rememberable, :validatable,
|
||||||
|
:confirmable, :lockable, :registerable
|
||||||
|
|
||||||
|
validates_uniqueness_of :email
|
||||||
end
|
end
|
||||||
|
|
21
db/schema.rb
21
db/schema.rb
|
@ -1,17 +1,14 @@
|
||||||
# This file is auto-generated from the current state of the database.
|
# This file is auto-generated from the current state of the database. Instead
|
||||||
# Instead of editing this file, please use the migrations feature of
|
# of editing this file, please use the migrations feature of Active Record to
|
||||||
# Active Record to incrementally modify your database, and then
|
# incrementally modify your database, and then regenerate this schema definition.
|
||||||
# regenerate this schema definition.
|
|
||||||
#
|
#
|
||||||
# Note that this schema.rb definition is the authoritative source for
|
# Note that this schema.rb definition is the authoritative source for your
|
||||||
# your database schema. If you need to create the application database
|
# database schema. If you need to create the application database on another
|
||||||
# on another system, you should be using db:schema:load, not running all
|
# system, you should be using db:schema:load, not running all the migrations
|
||||||
# the migrations from scratch. The latter is a flawed and unsustainable
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
||||||
# approach (the more migrations you'll amass, the slower it'll run and
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
||||||
# the greater likelihood for issues).
|
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
# control system.
|
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20_190_703_190_859) do
|
ActiveRecord::Schema.define(version: 20_190_703_190_859) do
|
||||||
create_table 'usuaries', force: :cascade do |t|
|
create_table 'usuaries', force: :cascade do |t|
|
||||||
|
|
Loading…
Reference in a new issue