Class: Sufia::Models::OrcidFieldGenerator
- Inherits:
-
AbstractMigrationGenerator
- Object
- Rails::Generators::Base
- AbstractMigrationGenerator
- Sufia::Models::OrcidFieldGenerator
- Defined in:
- lib/generators/sufia/models/orcid_field_generator.rb
Instance Method Summary collapse
- #banner ⇒ Object
-
#copy_migrations ⇒ Object
Setup the database migration.
Methods inherited from AbstractMigrationGenerator
Instance Method Details
#banner ⇒ Object
11 12 13 |
# File 'lib/generators/sufia/models/orcid_field_generator.rb', line 11 def say_status("info", "ADDING ORCID FIELD TO USER MODEL", :blue) end |
#copy_migrations ⇒ Object
Setup the database migration
16 17 18 |
# File 'lib/generators/sufia/models/orcid_field_generator.rb', line 16 def copy_migrations better_migration_template 'add_orcid_to_users.rb' end |