Sha256: 41fa64d3a4060dbc90897db97f3f4d27e6356668645c44983937e3b00c941a77
Contents?: true
Size: 640 Bytes
Versions: 8
Compression:
Stored size: 640 Bytes
Contents
class AddPgSearchAssociatedAgainstSupportFunctions < ActiveRecord::Migration def self.up say_with_time("Adding support functions for pg_search :associated_against") do if ActiveRecord::Base.connection.send(:postgresql_version) < 80400 execute <<-SQL <%= read_sql_file "array_agg" %> SQL end end end def self.down say_with_time("Dropping support functions for pg_search :associated_against") do if ActiveRecord::Base.connection.send(:postgresql_version) < 80400 execute <<-SQL <%= read_sql_file "uninstall_array_agg" %> SQL end end end end
Version data entries
8 entries across 8 versions & 1 rubygems