Sha256: 442a4f8debc6c015c1862c54305c6a031b2c9b53fd0eb7ab2f74279885c41e57

Contents?: true

Size: 666 Bytes

Versions: 8

Compression:

Stored size: 666 Bytes

Contents

require_relative 'abstract_migration_generator'

class Sufia::Models::ProxiesGenerator < Sufia::Models::AbstractMigrationGenerator
  source_root File.expand_path('../templates', __FILE__)

  desc """
This generator adds proxies and transfers to your application:
 1. Creates several database migrations if they do not exist in /db/migrate
       """

  def banner
    say_status("info", "ADDING PROXY/TRANSFER-RELATED SUFIA MODELS", :blue)
  end

  # Setup the database migrations
  def copy_migrations
    [
      'create_proxy_deposit_rights.rb',
      'create_proxy_deposit_requests.rb'
    ].each do |file|
      better_migration_template file
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sufia-models-6.7.0 lib/generators/sufia/models/proxies_generator.rb
sufia-models-6.6.1 lib/generators/sufia/models/proxies_generator.rb
sufia-models-6.6.0 lib/generators/sufia/models/proxies_generator.rb
sufia-models-6.5.0 lib/generators/sufia/models/proxies_generator.rb
sufia-models-6.4.0 lib/generators/sufia/models/proxies_generator.rb
sufia-models-6.3.0 lib/generators/sufia/models/proxies_generator.rb
sufia-models-6.2.0 lib/generators/sufia/models/proxies_generator.rb
sufia-models-6.1.0 lib/generators/sufia/models/proxies_generator.rb