Add missing NOT NULL on more columns from "large but valid" tables (#33330)
				
					
				
			This commit is contained in:
		@@ -5,11 +5,11 @@
 | 
			
		||||
# Table name: account_notes
 | 
			
		||||
#
 | 
			
		||||
#  id                :bigint(8)        not null, primary key
 | 
			
		||||
#  account_id        :bigint(8)
 | 
			
		||||
#  target_account_id :bigint(8)
 | 
			
		||||
#  comment           :text             not null
 | 
			
		||||
#  created_at        :datetime         not null
 | 
			
		||||
#  updated_at        :datetime         not null
 | 
			
		||||
#  account_id        :bigint(8)        not null
 | 
			
		||||
#  target_account_id :bigint(8)        not null
 | 
			
		||||
#
 | 
			
		||||
class AccountNote < ApplicationRecord
 | 
			
		||||
  include RelationshipCacheable
 | 
			
		||||
 
 | 
			
		||||
@@ -5,12 +5,12 @@
 | 
			
		||||
# Table name: markers
 | 
			
		||||
#
 | 
			
		||||
#  id           :bigint(8)        not null, primary key
 | 
			
		||||
#  user_id      :bigint(8)
 | 
			
		||||
#  timeline     :string           default(""), not null
 | 
			
		||||
#  last_read_id :bigint(8)        default(0), not null
 | 
			
		||||
#  lock_version :integer          default(0), not null
 | 
			
		||||
#  timeline     :string           default(""), not null
 | 
			
		||||
#  created_at   :datetime         not null
 | 
			
		||||
#  updated_at   :datetime         not null
 | 
			
		||||
#  last_read_id :bigint(8)        default(0), not null
 | 
			
		||||
#  user_id      :bigint(8)        not null
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
class Marker < ApplicationRecord
 | 
			
		||||
 
 | 
			
		||||
@@ -5,12 +5,12 @@
 | 
			
		||||
# Table name: poll_votes
 | 
			
		||||
#
 | 
			
		||||
#  id         :bigint(8)        not null, primary key
 | 
			
		||||
#  account_id :bigint(8)
 | 
			
		||||
#  poll_id    :bigint(8)
 | 
			
		||||
#  choice     :integer          default(0), not null
 | 
			
		||||
#  uri        :string
 | 
			
		||||
#  created_at :datetime         not null
 | 
			
		||||
#  updated_at :datetime         not null
 | 
			
		||||
#  uri        :string
 | 
			
		||||
#  account_id :bigint(8)        not null
 | 
			
		||||
#  poll_id    :bigint(8)        not null
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
class PollVote < ApplicationRecord
 | 
			
		||||
 
 | 
			
		||||
@@ -5,11 +5,11 @@
 | 
			
		||||
# Table name: tombstones
 | 
			
		||||
#
 | 
			
		||||
#  id           :bigint(8)        not null, primary key
 | 
			
		||||
#  account_id   :bigint(8)
 | 
			
		||||
#  by_moderator :boolean
 | 
			
		||||
#  uri          :string           not null
 | 
			
		||||
#  created_at   :datetime         not null
 | 
			
		||||
#  updated_at   :datetime         not null
 | 
			
		||||
#  by_moderator :boolean
 | 
			
		||||
#  account_id   :bigint(8)        not null
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
class Tombstone < ApplicationRecord
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user