Add dotenv - Protect my secret data in .env file

This commit is contained in:
Benjamin Myara
2018-08-29 14:53:39 +01:00
parent dfb53b89b0
commit 6dee298b44
18 changed files with 240 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
class AddFirstNameToUsers < ActiveRecord::Migration[5.2]
def change
add_column :users, :first_name, :string
add_column :users, :last_name, :string
add_column :users, :photo, :string
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_08_27_151325) do
ActiveRecord::Schema.define(version: 2018_08_29_105638) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -30,6 +30,9 @@ ActiveRecord::Schema.define(version: 2018_08_27_151325) do
t.datetime "remember_created_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "first_name"
t.string "last_name"
t.string "photo"
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end