Skip to content

Commit

Permalink
Fix the last migration to actually create the users table (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielj authored Jun 19, 2023
1 parent 7973068 commit d8f2021
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
9 changes: 0 additions & 9 deletions db/migrate/20230516150928_add_auth_columns_to_user.rb

This file was deleted.

18 changes: 18 additions & 0 deletions db/migrate/20230516150928_create_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class CreateUsers < ActiveRecord::Migration[7.0]
def change
create_table "users", force: :cascade 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.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "provider"
t.string "uid"
t.string "name"
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
end
end

0 comments on commit d8f2021

Please sign in to comment.