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-5.1.3 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-5.1.2 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-5.1.1 db/migrate/509_update_dg_plpgsql_v1_fns.rb
marty-5.1.0 db/migrate/509_update_dg_plpgsql_v1_fns.rb