discourse/app/models/post_custom_field.rb
Loïc Guitaut 0eab7daea4 DEV: Upgrade Rails to version 8.0.2
- Migrated from annotate to annotaterb as the former is not maintained
  anymore.
- Dropped our `fast_pluck` patch as the default `pluck` implementation
  seems now faster.
2025-07-22 09:59:44 +02:00

27 lines
914 B
Ruby

# frozen_string_literal: true
class PostCustomField < ActiveRecord::Base
include CustomField
belongs_to :post
end
# == Schema Information
#
# Table name: post_custom_fields
#
# id :integer not null, primary key
# name :string(256) not null
# value :text
# created_at :datetime not null
# updated_at :datetime not null
# post_id :integer not null
#
# Indexes
#
# index_post_custom_fields_on_name_and_value (name, "left"(value, 200))
# index_post_custom_fields_on_notice (post_id) UNIQUE WHERE ((name)::text = 'notice'::text)
# index_post_custom_fields_on_post_id (post_id) UNIQUE WHERE ((name)::text = 'missing uploads'::text)
# index_post_custom_fields_on_post_id_and_name (post_id,name)
# index_post_id_where_missing_uploads_ignored (post_id) UNIQUE WHERE ((name)::text = 'missing uploads ignored'::text)
#