Skip to content

Instantly share code, notes, and snippets.

@jonahoffline
Created September 25, 2013 22:20
Show Gist options
  • Save jonahoffline/6706882 to your computer and use it in GitHub Desktop.
Save jonahoffline/6706882 to your computer and use it in GitHub Desktop.
Migration to enabling postgresql extension for SoPR-platform. This will fix the current build error.
# Copy paste this motherfucker after running $ ./bin/rails g migration AddUnaccentPgsqlExtension
require_relative '20130921141716_add_unaccent_extension'
class AddUnaccentPgsqlExtension < ActiveRecord::Migration
def up
revert AddUnaccentExtension
enable_extension 'unaccent'
end
def down
disable_extension 'unaccent'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment