Fix mentions.account_id
and mentions.status_id
not having NOT NULL
database constraints (#30591)
This commit is contained in:
parent
37e4d96b70
commit
9e9613b286
6 changed files with 47 additions and 5 deletions
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_06_03_195202) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_06_07_094856) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
@ -661,10 +661,10 @@ ActiveRecord::Schema[7.1].define(version: 2024_06_03_195202) do
|
|||
end
|
||||
|
||||
create_table "mentions", force: :cascade do |t|
|
||||
t.bigint "status_id"
|
||||
t.bigint "status_id", null: false
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
t.bigint "account_id"
|
||||
t.bigint "account_id", null: false
|
||||
t.boolean "silent", default: false, null: false
|
||||
t.index ["account_id", "status_id"], name: "index_mentions_on_account_id_and_status_id", unique: true
|
||||
t.index ["status_id"], name: "index_mentions_on_status_id"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue