Parent
ActiveRecord::Migration<%= migration_version %> def change enable_extension :pg_trgm create_table :polysearches, primary_key: [:id, :searchable_type], options: "PARTITION BY HASH (searchable_type)" do |t| t.uuid :id, null: false, default: "gen_random_uuid()" t.string :searchable_type, null: false t.<%= searchable_id_datatype %> :searchable_id, null: false