mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:21:42 +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
|
||||
class Usuarie < ApplicationRecord
|
||||
devise :database_authenticatable,
|
||||
:recoverable, :rememberable, :validatable,
|
||||
:confirmable, :lockable, :registerable
|
||||
|
||||
validates_uniqueness_of :email
|
||||
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.
|
||||
# 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|
|
||||
|
|
Loading…
Reference in a new issue