Sha256: e972d783b52544ab65aeeeb3e42ff1041ad24d1598c71ba3676ee66be4f0328d

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 Bytes

Contents

require_relative 'abstract_migration_generator'

class Sufia::ProxiesGenerator < Sufia::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 DATABASE TABLES", :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

3 entries across 3 versions & 1 rubygems

Version Path
sufia-7.0.0.beta3 lib/generators/sufia/proxies_generator.rb
sufia-7.0.0.beta2 lib/generators/sufia/proxies_generator.rb
sufia-7.0.0.beta1 lib/generators/sufia/proxies_generator.rb