5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 02:21:42 +00:00

usuarie en devise

This commit is contained in:
f 2019-07-03 16:59:21 -03:00
parent 192efb7b6f
commit 3c2c0fdff4
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
2 changed files with 17 additions and 12 deletions

View file

@ -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

View file

@ -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|