Sha256: 50cbd20176be2e1834ab6666569c36f0cc5563852d5b0ac5fe53dd18202f0837

Contents?: true

Size: 642 Bytes

Versions: 6

Compression:

Stored size: 642 Bytes

Contents

require_relative 'abstract_migration_generator'

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

  desc """
This generator for upgrading sufia-models to 6.0 makes the following changes to your application:
 1. Creates several database migrations if they do not exist in /db/migrate
       """

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

Version data entries

6 entries across 6 versions & 1 rubygems

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