Sha256: c0af78ddf55488c025c6f7d622b2c6fd963ff81d99f5a73e7df96504c32d6749

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 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

4 entries across 4 versions & 2 rubygems

Version Path
sufia-models-6.2.0 lib/generators/sufia/models/upgrade600_generator.rb
sufia-models-6.1.0 lib/generators/sufia/models/upgrade600_generator.rb
sufia-models-6.0.0 lib/generators/sufia/models/upgrade600_generator.rb
sufia-6.0.0 sufia-models/lib/generators/sufia/models/upgrade600_generator.rb