feat(user): add blocket_at and block_reason columns
This commit is contained in:
parent
10d653359e
commit
c130f80a7d
3 changed files with 11 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
||||||
# Table name: users
|
# Table name: users
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
|
# blocked_at :datetime
|
||||||
|
# blocked_reason :text
|
||||||
# confirmation_sent_at :datetime
|
# confirmation_sent_at :datetime
|
||||||
# confirmation_token :string
|
# confirmation_token :string
|
||||||
# confirmed_at :datetime
|
# confirmed_at :datetime
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
class AddBlockedAtBlockReasontoUser < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
add_column :users, :blocked_at, :datetime
|
||||||
|
add_column :users, :blocked_reason, :text
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# 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[7.0].define(version: 2023_06_29_102031) do
|
ActiveRecord::Schema[7.0].define(version: 2023_07_18_113720) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pgcrypto"
|
enable_extension "pgcrypto"
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -935,6 +935,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_29_102031) do
|
||||||
|
|
||||||
create_table "users", id: :serial, force: :cascade do |t|
|
create_table "users", id: :serial, force: :cascade do |t|
|
||||||
t.datetime "confirmation_sent_at", precision: 6
|
t.datetime "confirmation_sent_at", precision: 6
|
||||||
|
t.datetime "blocked_at", precision: 6
|
||||||
|
t.text "blocked_reason"
|
||||||
t.string "confirmation_token"
|
t.string "confirmation_token"
|
||||||
t.datetime "confirmed_at", precision: 6
|
t.datetime "confirmed_at", precision: 6
|
||||||
t.datetime "created_at", precision: 6
|
t.datetime "created_at", precision: 6
|
||||||
|
|
Loading…
Add table
Reference in a new issue