Sha256: 5affeb0119b27351d6c6f1a5b15570a834a30c806e3779a1e471c1d0e80bf7b3

Contents?: true

Size: 546 Bytes

Versions: 85

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

class EnablePgTrgmExtensionForProposals < 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-proposals-0.29.1 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.28.4 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.27.9 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.29.0 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.28.3 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.27.8 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.29.0.rc4 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.29.0.rc3 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.29.0.rc2 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.29.0.rc1 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.28.2 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.27.7 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.28.1 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.27.6 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.26.10 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.26.9 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.28.0 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.27.5 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.28.0.rc5 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb
decidim-proposals-0.28.0.rc4 db/migrate/20171212102250_enable_pg_trgm_extension_for_proposals.rb