Sha256: 0c108eec37b8a25f85f514b19531aacb9a48dca0a3ae50da3f9a9ae37362e11a

Contents?: true

Size: 565 Bytes

Versions: 16

Compression:

Stored size: 565 Bytes

Contents

require_relative 'abstract_migration_generator'

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

  desc """
This generator adds a field to hold users' ORCIDs to your application:
 1. Creates a database migration if they do not exist in /db/migrate
       """

  def banner
    say_status("warning", "ADDING ORCID FIELD TO USER MODEL", :yellow)
  end

  # Setup the database migration
  def copy_migrations
    better_migration_template 'add_orcid_to_users.rb'
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
sufia-5.0.0 sufia-models/lib/generators/sufia/models/orcid_field_generator.rb
sufia-models-5.0.0 lib/generators/sufia/models/orcid_field_generator.rb
sufia-models-6.0.0 lib/generators/sufia/models/orcid_field_generator.rb
sufia-6.0.0 sufia-models/lib/generators/sufia/models/orcid_field_generator.rb
sufia-6.0.0.rc4 sufia-models/lib/generators/sufia/models/orcid_field_generator.rb
sufia-models-6.0.0.rc4 lib/generators/sufia/models/orcid_field_generator.rb
sufia-6.0.0.rc3 sufia-models/lib/generators/sufia/models/orcid_field_generator.rb
sufia-models-6.0.0.rc3 lib/generators/sufia/models/orcid_field_generator.rb
sufia-5.0.0.rc1 sufia-models/lib/generators/sufia/models/orcid_field_generator.rb
sufia-models-5.0.0.rc1 lib/generators/sufia/models/orcid_field_generator.rb
sufia-6.0.0.rc2 sufia-models/lib/generators/sufia/models/orcid_field_generator.rb
sufia-models-6.0.0.rc2 lib/generators/sufia/models/orcid_field_generator.rb
sufia-6.0.0.rc1 sufia-models/lib/generators/sufia/models/orcid_field_generator.rb
sufia-models-6.0.0.rc1 lib/generators/sufia/models/orcid_field_generator.rb
sufia-4.3.1 sufia-models/lib/generators/sufia/models/orcid_field_generator.rb
sufia-models-4.3.1 lib/generators/sufia/models/orcid_field_generator.rb