Add missing NOT NULL
on more columns from "large but valid" tables (#33330)
This commit is contained in:
parent
f19fd0b889
commit
978142ac9e
17 changed files with 173 additions and 17 deletions
14
db/schema.rb
14
db/schema.rb
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_12_13_170053) do
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_12_16_224825) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
@ -72,8 +72,8 @@ ActiveRecord::Schema[7.2].define(version: 2024_12_13_170053) do
|
|||
end
|
||||
|
||||
create_table "account_notes", force: :cascade do |t|
|
||||
t.bigint "account_id"
|
||||
t.bigint "target_account_id"
|
||||
t.bigint "account_id", null: false
|
||||
t.bigint "target_account_id", null: false
|
||||
t.text "comment", null: false
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
|
@ -599,7 +599,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_12_13_170053) do
|
|||
end
|
||||
|
||||
create_table "markers", force: :cascade do |t|
|
||||
t.bigint "user_id"
|
||||
t.bigint "user_id", null: false
|
||||
t.string "timeline", default: "", null: false
|
||||
t.bigint "last_read_id", default: 0, null: false
|
||||
t.integer "lock_version", default: 0, null: false
|
||||
|
@ -767,8 +767,8 @@ ActiveRecord::Schema[7.2].define(version: 2024_12_13_170053) do
|
|||
end
|
||||
|
||||
create_table "poll_votes", force: :cascade do |t|
|
||||
t.bigint "account_id"
|
||||
t.bigint "poll_id"
|
||||
t.bigint "account_id", null: false
|
||||
t.bigint "poll_id", null: false
|
||||
t.integer "choice", default: 0, null: false
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
|
@ -1113,7 +1113,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_12_13_170053) do
|
|||
end
|
||||
|
||||
create_table "tombstones", force: :cascade do |t|
|
||||
t.bigint "account_id"
|
||||
t.bigint "account_id", null: false
|
||||
t.string "uri", null: false
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue