Sha256: b46341b4c91ad8d203e780e15e44222b4b451e4aa379f5ae09426f7e07c6e483

Contents?: true

Size: 548 Bytes

Versions: 85

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

class EnablePgTrgmExtensionForInitiatives < ActiveRecord::Migration[5.1]
  def change
    return if extension_enabled?("pg_trgm")

    begin
      # required so that test suite works in ci env
      enable_extension "pg_trgm"
    rescue StandardError
      raise <<-MSG.squish
        Decidim requires the pg_trgm extension to be enabled in your PostgreSQL.
        You can do so by running `CREATE EXTENSION IF NOT EXISTS "pg_trgm";` on the current DB as a PostgreSQL
        super user.
      MSG
    end
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
decidim-initiatives-0.20.1 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.20.0 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.19.1 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.18.1 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.19.0 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.17.2 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.18.0 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.17.1 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.16.1 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.17.0 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.16.0 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.15.2 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.15.1 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.15.0 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.14.4 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.14.3 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.14.2 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.14.1 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.13.1 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb
decidim-initiatives-0.12.2 db/migrate/20171109132011_enable_pg_trgm_extension_for_initiatives.rb