Sha256: 13b5d10598c0c98800578fd852bf276ae281e33919253258e590910d7c0285b9
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 Bytes
Contents
require_relative 'abstract_migration_generator' class Sufia::OrcidFieldGenerator < Sufia::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("info", "ADDING ORCID FIELD TO USER MODEL", :blue) end # Setup the database migration def copy_migrations better_migration_template 'add_orcid_to_users.rb' end end
Version data entries
3 entries across 3 versions & 1 rubygems