Sha256: 8f3dd5f3188a4e5ae1a3a217b4dc8473deb1de2294ac776822e143376e5fec70

Contents?: true

Size: 331 Bytes

Versions: 11

Compression:

Stored size: 331 Bytes

Contents

require '<%= name %>/version'
require 'pg_migrate'

module <%= constant_name %>

  class Migrator
    def migrate options={}
      pgMigrator = PgMigrate::Migrator.new(PgMigrate::ManifestReader.new, PgMigrate::SqlReader.new, options)
      pgMigrator.migrate(File.expand_path('../<%= name %>/schemas', __FILE__))
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pg_migrate-0.1.14 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.13 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.12 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.7 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.6 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.5 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.4 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.3 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.2 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.1 lib/pg_migrate/package_templates/lib/gem.rb
pg_migrate-0.1.0 lib/pg_migrate/package_templates/lib/gem.rb