This commit is contained in:
parent
21d6b28332
commit
5ab8aa99db
|
|
@ -6,7 +6,7 @@ require 'rails/all'
|
||||||
# you've limited to :test, :development, or :production.
|
# you've limited to :test, :development, or :production.
|
||||||
Bundler.require(*Rails.groups)
|
Bundler.require(*Rails.groups)
|
||||||
|
|
||||||
module SimpleCrm
|
module SimpleCms
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Initialize configuration defaults for originally generated Rails version.
|
# Initialize configuration defaults for originally generated Rails version.
|
||||||
config.load_defaults 5.1
|
config.load_defaults 5.1
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@ class DeviseCreateAdmins < ActiveRecord::Migration[5.1]
|
||||||
# t.string :unconfirmed_email # Only if using reconfirmable
|
# t.string :unconfirmed_email # Only if using reconfirmable
|
||||||
|
|
||||||
## Lockable
|
## Lockable
|
||||||
# t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
|
t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
|
||||||
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
t.string :unlock_token # Only if unlock strategy is :email or :both
|
||||||
# t.datetime :locked_at
|
t.datetime :locked_at
|
||||||
|
|
||||||
|
|
||||||
t.timestamps null: false
|
t.timestamps null: false
|
||||||
|
|
@ -37,6 +37,6 @@ class DeviseCreateAdmins < ActiveRecord::Migration[5.1]
|
||||||
add_index :admins, :email, unique: true
|
add_index :admins, :email, unique: true
|
||||||
add_index :admins, :reset_password_token, unique: true
|
add_index :admins, :reset_password_token, unique: true
|
||||||
# add_index :admins, :confirmation_token, unique: true
|
# add_index :admins, :confirmation_token, unique: true
|
||||||
# add_index :admins, :unlock_token, unique: true
|
add_index :admins, :unlock_token, unique: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
23
db/schema.rb
23
db/schema.rb
|
|
@ -10,7 +10,28 @@
|
||||||
#
|
#
|
||||||
# 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: 20180119143920) do
|
ActiveRecord::Schema.define(version: 20180119145343) do
|
||||||
|
|
||||||
|
create_table "admins", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
||||||
|
t.string "email", default: "", null: false
|
||||||
|
t.string "encrypted_password", default: "", null: false
|
||||||
|
t.string "reset_password_token"
|
||||||
|
t.datetime "reset_password_sent_at"
|
||||||
|
t.datetime "remember_created_at"
|
||||||
|
t.integer "sign_in_count", default: 0, null: false
|
||||||
|
t.datetime "current_sign_in_at"
|
||||||
|
t.datetime "last_sign_in_at"
|
||||||
|
t.string "current_sign_in_ip"
|
||||||
|
t.string "last_sign_in_ip"
|
||||||
|
t.integer "failed_attempts", default: 0, null: false
|
||||||
|
t.string "unlock_token"
|
||||||
|
t.datetime "locked_at"
|
||||||
|
t.datetime "created_at", null: false
|
||||||
|
t.datetime "updated_at", null: false
|
||||||
|
t.index ["email"], name: "index_admins_on_email", unique: true
|
||||||
|
t.index ["reset_password_token"], name: "index_admins_on_reset_password_token", unique: true
|
||||||
|
t.index ["unlock_token"], name: "index_admins_on_unlock_token", unique: true
|
||||||
|
end
|
||||||
|
|
||||||
create_table "friendly_id_slugs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
create_table "friendly_id_slugs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci" do |t|
|
||||||
t.string "slug", null: false
|
t.string "slug", null: false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue