Skip to content

Commit

Permalink
Merge pull request #50 from sascha-karnatz/mark-page-id-as-optional
Browse files Browse the repository at this point in the history
Mark page id as optional on pg_search_document
  • Loading branch information
tvdeyen authored Oct 8, 2024
2 parents 88a9904 + 33ae0da commit c9eb07a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Alchemy::PgSearch::PgSearchDocumentExtension
def self.prepended(base)
base.belongs_to :page, class_name: "::Alchemy::Page", foreign_key: "page_id"
base.belongs_to :page, class_name: "::Alchemy::Page", foreign_key: "page_id", optional: true
end

##
Expand Down

0 comments on commit c9eb07a

Please sign in to comment.