chore: Ensure null validation for private attribute in messages (#8085)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
# content_type :integer default("text"), not null
|
||||
# external_source_ids :jsonb
|
||||
# message_type :integer not null
|
||||
# private :boolean default(FALSE)
|
||||
# private :boolean default(FALSE), not null
|
||||
# processed_message_content :text
|
||||
# sender_type :string
|
||||
# sentiment :jsonb
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class EnsureMessagePrivateNotNull < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
change_column_null :messages, :private, false, false
|
||||
end
|
||||
end
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_08_01_180936) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_10_11_041615) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
enable_extension "pg_trgm"
|
||||
@@ -661,7 +661,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_01_180936) do
|
||||
t.integer "message_type", null: false
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
t.boolean "private", default: false
|
||||
t.boolean "private", default: false, null: false
|
||||
t.integer "status", default: 0
|
||||
t.string "source_id"
|
||||
t.integer "content_type", default: 0, null: false
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# answer :text not null
|
||||
# embedding :vector(1536)
|
||||
# question :string not null
|
||||
# status :integer default(0)
|
||||
# status :integer default("pending")
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# account_id :bigint not null
|
||||
|
||||
Reference in New Issue
Block a user