Commit fc63dcfc by Mai Hoang Thai Ha

Make a basic User model (including secure password)

parent bf12793f
Pipeline #1232 failed with stages
in 0 seconds
......@@ -5,6 +5,7 @@ ruby '3.0.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.3', '>= 6.1.3.2'
gem 'bcrypt', '3.1.13'
gem 'bootstrap-sass', '3.4.1'
gem 'autoprefixer-rails'
# Use Puma as the app server
......
......@@ -65,6 +65,7 @@ GEM
ansi (1.5.0)
autoprefixer-rails (10.2.5.1)
execjs (> 0)
bcrypt (3.1.13)
bindex (0.8.1)
bootsnap (1.7.5)
msgpack (~> 1.0)
......@@ -244,6 +245,7 @@ PLATFORMS
DEPENDENCIES
autoprefixer-rails
bcrypt (= 3.1.13)
bootsnap (>= 1.4.4)
bootstrap-sass (= 3.4.1)
byebug
......
......@@ -10,6 +10,15 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 0) do
ActiveRecord::Schema.define(version: 2021_06_07_081815) do
create_table "users", force: :cascade do |t|
t.string "name"
t.string "email"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "password_digest"
t.index ["email"], name: "index_users_on_email", unique: true
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment