Textacular exposes full text search capabilities from PostgreSQL, and allows you to declare full text indexes. Textacular will extend ActiveRecord with named_scope methods making searching easy and fun!
After running the command rake db:migrate, I get the below syntax error
SQLite3::SQLException: near "EXTENSION": syntax error: CREATE EXTENSION IF NOT EXISTS pg_trgm;
This is the migration file
class InstallTrigram < ActiveRecord::Migration[5.0]
def self.up
ActiveRecord::Base.connection.execute("CREATE EXTENSION IF NOT EXISTS pg_trgm;")
end
def self.down
ActiveRecord::Base.connection.execute("DROP EXTENSION pg_trgm;")
end
end
After running the command
rake db:migrate
, I get the below syntax errorThis is the migration file