Add missing NOT NULL
requirement to small, indexed, valid data tables (#33284)
This commit is contained in:
parent
4130bda12e
commit
efc85e39a0
19 changed files with 198 additions and 33 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue