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