Sha256: dc1bcbb2539cf16ea22ea26e3cdbf5c793f20553edf58aa2e07ea05b0e0d7cda
Contents?: true
Size: 659 Bytes
Versions: 31
Compression:
Stored size: 659 Bytes
Contents
if defined? ActiveRecord::ConnectionAdapters::PostgreSQLAdapter if ActiveRecord::Base.connection.kind_of? ActiveRecord::ConnectionAdapters::PostgreSQLAdapter begin ActiveRecord::Base.connection.execute("SELECT set_limit(0.15);") rescue ActiveRecord::StatementInvalid => e if e.message.include? 'function set_limit(numeric) does not exist' puts 'Trigram set_limit can\'t be executed while the install_trigram migration isn\'t done' puts 'This happens when migrating for the first time' puts 'Try running rake express_admin_engine:install:migrations in the main app then rake db:migrate' end end end end
Version data entries
31 entries across 31 versions & 1 rubygems