Sha256: c99be919c774f8d463d7c325490740732099178674aa87722b2e1560b00fd8af

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

module Migrations
  require_relative './migrations/model_migrator'
  require_relative './migrations/reward_migrator'

  include ModelMigrator
  include RewardMigrator

  def migration_created?(migration_name)
    /#{migration_name}/ =~ last_migration
  end

  def last_migration
    Dir['db/migrate/*'].last
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
referable-0.3.1 lib/generators/referable/migrations.rb
referable-0.3.0 lib/generators/referable/migrations.rb
referable-0.2.0 lib/generators/referable/migrations.rb