Skip to content

Instantly share code, notes, and snippets.

@benoror
Last active May 6, 2016 18:53
Show Gist options
  • Save benoror/581ca4b5fcad69ff170946f1f508a7ef to your computer and use it in GitHub Desktop.
Save benoror/581ca4b5fcad69ff170946f1f508a7ef to your computer and use it in GitHub Desktop.
class InstallFuzzystrmatchContribPackage < ActiveRecord::Migration
def up
execute "CREATE EXTENSION fuzzystrmatch;"
end
def down
execute "DROP EXTENSION fuzzystrmatch;"
end
end
class InstallPgTrgmContribPackage < ActiveRecord::Migration
def up
execute "CREATE EXTENSION pg_trgm;"
end
def down
execute "DROP EXTENSION pg_trgm;"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment