refactor and fixes
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoveUserFirstLastNameNotNull < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
change_column_null :users, :first_name, true
|
||||
change_column_null :users, :last_name, true
|
||||
end
|
||||
end
|
||||
+3
-3
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_08_15_190540) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_08_19_113427) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
@@ -140,8 +140,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_15_190540) do
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "first_name", null: false
|
||||
t.string "last_name", null: false
|
||||
t.string "first_name"
|
||||
t.string "last_name"
|
||||
t.string "email", null: false
|
||||
t.string "role", null: false
|
||||
t.string "encrypted_password", null: false
|
||||
|
||||
Reference in New Issue
Block a user