diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-03-09 08:51:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 08:51:12 +0100 |
commit | 318d34d528d8d4f9165bf9c1f873da68aadb90a2 (patch) | |
tree | 4fcbe1c0678fc37144635a68fae0d70f47d84f0b /db/schema.rb | |
parent | c0327ff31f839e1beae59486bf92d7e1c4689b06 (diff) |
Fix data integrity of featured tags (#17712)
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/schema.rb b/db/schema.rb index 3666804ee..ef1620113 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2022_03_04_195405) do +ActiveRecord::Schema.define(version: 2022_03_07_094650) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -420,8 +420,8 @@ ActiveRecord::Schema.define(version: 2022_03_04_195405) do end create_table "featured_tags", force: :cascade do |t| - t.bigint "account_id" - t.bigint "tag_id" + t.bigint "account_id", null: false + t.bigint "tag_id", null: false t.bigint "statuses_count", default: 0, null: false t.datetime "last_status_at" t.datetime "created_at", null: false |