lib/pg_trunk/operations/enums/change_enum.rb
# Add new value (irreversible!)
# If neither option is specified, the value will be added
# to the very end of the array.
# Notice, that all add-ons are made BEFORE renames.
Add new value (irreversible!)
If neither option is specified, the value will be added
to the very end of the array.
Notice, that all add-ons are made BEFORE renames.
Add new value ( irreversible! ) If neither option is specified the value will be added to the very end of the array . Notice that all add - ons are made BEFORE renames .
def to_sql(version)
      raise <<~MSG.squish if version < "12" && changes.any?(&:add?)
        Adding new values to enumerable types inside a migration
        is supported in PostgreSQL v12+.
      MSG
      [*add_values, *rename_values, *change_comment].join(" ")
    end
def to_sql ( version ) raise <<~MSG . squish if version < "12" && changes . any? ( & :add? ) 
        Adding new values to enumerable types inside a migration
        is supported in PostgreSQL v12+.
       MSG [ * add_values , * rename_values , * change_comment ] . join ( " " ) end
Add new value (irreversible!)
Add new value ( irreversible! )
version
<not_specific>