lib/declare_schema/model.rb
# returns the primary key (String) as declared with primary_key =
# unlike the `primary_key` method, DOES NOT query the database to find the actual primary key in use right now
# if no explicit primary key set, returns the _default_declared_primary_key
returns the primary key (String) as declared with primary_key
unlike the `primary_key` method, DOES NOT query the database to find the actual primary key in use right now
if no explicit primary key set, returns the _default_declared_primary_key
returns the primary key ( String ) as declared with primary_key unlike the ` primary_key ` method DOES NOT query the database to find the actual primary key in use right now if no explicit primary key set returns the _default_declared_primary_key
def _declared_primary_key
        if defined?(@primary_key)
          @primary_key&.to_s
        end || _default_declared_primary_key
      end
def _declared_primary_key if defined? ( @primary_key ) @primary_key &. to_s end || _default_declared_primary_key end
returns the primary key (String) as declared with primary_key
unlike the `primary_key` method, DOES NOT query the database to find the actual primary key in use right now
if no explicit primary key set, returns the _default_declared_primary_key
returns the primary key ( String ) as declared with primary_key unlike the ` primary_key ` method DOES NOT query the database to find the actual primary key in use right now if no explicit primary key set returns the _default_declared_primary_key