Sha256: 37f271e2b2ed67b94d068dd4684fcb8340a3679b4262e6906b365dc495250975

Contents?: true

Size: 291 Bytes

Versions: 24

Compression:

Stored size: 291 Bytes

Contents

class UpdateDgPlpgsqlV1Fns < ActiveRecord::Migration[4.2]
  def up
    marty_path = Gem.loaded_specs["marty"].full_gem_path
    Dir.glob("#{marty_path}/db/sql/*_v1.sql") do |f|
      connection.execute(File.read(f))
    end
  end

  def down
    # Load functions once again
    up
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
marty-14.3.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-14.0.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-13.0.2 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-11.0.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-10.0.3 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-10.0.2 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-10.0.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-9.5.1 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-9.5.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-9.3.3 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-9.3.2 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-9.3.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-8.5.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-8.4.1 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-8.3.1 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-8.2.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-8.0.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-6.1.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-5.2.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-5.1.4 db/migrate/509_update_dg_plpgsql_v1_fns.rb