Showing
2 changed files
with
20 additions
and
1 deletions
db/migrate/20180608221342_create_user.rb
0 → 100644
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ | 
| 10 | # | 10 | # | 
| 11 | # It's strongly recommended that you check this file into your version control system. | 11 | # It's strongly recommended that you check this file into your version control system. | 
| 12 | 12 | ||
| 13 | -ActiveRecord::Schema.define(version: 20180608221109) do | 13 | +ActiveRecord::Schema.define(version: 20180608221342) do | 
| 14 | 14 | ||
| 15 | # These are extensions that must be enabled in order to support this database | 15 | # These are extensions that must be enabled in order to support this database | 
| 16 | enable_extension "plpgsql" | 16 | enable_extension "plpgsql" | 
| ... | @@ -58,6 +58,14 @@ ActiveRecord::Schema.define(version: 20180608221109) do | ... | @@ -58,6 +58,14 @@ ActiveRecord::Schema.define(version: 20180608221109) do | 
| 58 | t.boolean "active" | 58 | t.boolean "active" | 
| 59 | end | 59 | end | 
| 60 | 60 | ||
| 61 | + create_table "users", force: :cascade do |t| | ||
| 62 | + t.string "name" | ||
| 63 | + t.string "mail" | ||
| 64 | + t.string "password_hash" | ||
| 65 | + t.string "password_salt" | ||
| 66 | + t.datetime "deleted_at" | ||
| 67 | + end | ||
| 68 | + | ||
| 61 | create_table "users_roles", force: :cascade do |t| | 69 | create_table "users_roles", force: :cascade do |t| | 
| 62 | t.integer "user_id" | 70 | t.integer "user_id" | 
| 63 | t.integer "role_id" | 71 | t.integer "role_id" | ... | ... | 
- 
Please register or login to post a comment