0
0
Fork 0

Add missing NOT NULL requirement to small, indexed, valid data tables (#33284)

This commit is contained in:
Matt Jankowski 2024-12-13 19:16:03 -05:00 committed by GitHub
parent 4130bda12e
commit efc85e39a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 198 additions and 33 deletions

View file

@ -5,11 +5,11 @@
# Table name: account_aliases
#
# id :bigint(8) not null, primary key
# account_id :bigint(8)
# acct :string default(""), not null
# uri :string default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint(8) not null
#
class AccountAlias < ApplicationRecord

View file

@ -5,9 +5,9 @@
# Table name: account_deletion_requests
#
# id :bigint(8) not null, primary key
# account_id :bigint(8)
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint(8) not null
#
class AccountDeletionRequest < ApplicationRecord
DELAY_TO_DELETION = 30.days.freeze

View file

@ -5,10 +5,10 @@
# Table name: account_domain_blocks
#
# id :bigint(8) not null, primary key
# domain :string
# domain :string not null
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint(8)
# account_id :bigint(8) not null
#
class AccountDomainBlock < ApplicationRecord

View file

@ -5,15 +5,15 @@
# Table name: admin_action_logs
#
# id :bigint(8) not null, primary key
# account_id :bigint(8)
# action :string default(""), not null
# human_identifier :string
# permalink :string
# route_param :string
# target_type :string
# target_id :bigint(8)
# created_at :datetime not null
# updated_at :datetime not null
# human_identifier :string
# route_param :string
# permalink :string
# account_id :bigint(8) not null
# target_id :bigint(8)
#
class Admin::ActionLog < ApplicationRecord

View file

@ -5,10 +5,10 @@
# Table name: announcement_mutes
#
# id :bigint(8) not null, primary key
# account_id :bigint(8)
# announcement_id :bigint(8)
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint(8) not null
# announcement_id :bigint(8) not null
#
class AnnouncementMute < ApplicationRecord

View file

@ -5,12 +5,12 @@
# Table name: announcement_reactions
#
# id :bigint(8) not null, primary key
# account_id :bigint(8)
# announcement_id :bigint(8)
# name :string default(""), not null
# custom_emoji_id :bigint(8)
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint(8) not null
# announcement_id :bigint(8) not null
# custom_emoji_id :bigint(8)
#
class AnnouncementReaction < ApplicationRecord

View file

@ -5,13 +5,13 @@
# Table name: custom_filters
#
# id :bigint(8) not null, primary key
# account_id :bigint(8)
# action :integer default("warn"), not null
# context :string default([]), not null, is an Array
# expires_at :datetime
# phrase :text default(""), not null
# context :string default([]), not null, is an Array
# created_at :datetime not null
# updated_at :datetime not null
# action :integer default("warn"), not null
# account_id :bigint(8) not null
#
class CustomFilter < ApplicationRecord

View file

@ -5,9 +5,9 @@
# Table name: scheduled_statuses
#
# id :bigint(8) not null, primary key
# account_id :bigint(8)
# scheduled_at :datetime
# params :jsonb
# scheduled_at :datetime
# account_id :bigint(8) not null
#
class ScheduledStatus < ApplicationRecord

View file

@ -5,10 +5,10 @@
# Table name: user_invite_requests
#
# id :bigint(8) not null, primary key
# user_id :bigint(8)
# text :text
# created_at :datetime not null
# updated_at :datetime not null
# user_id :bigint(8) not null
#
class UserInviteRequest < ApplicationRecord