Class: Sufia::Models::CachedStatsGenerator
- Inherits:
-
AbstractMigrationGenerator
- Object
- Rails::Generators::Base
- AbstractMigrationGenerator
- Sufia::Models::CachedStatsGenerator
- Defined in:
- lib/generators/sufia/models/cached_stats_generator.rb
Instance Method Summary collapse
- #banner ⇒ Object
-
#copy_migrations ⇒ Object
Setup the database migrations.
Methods inherited from AbstractMigrationGenerator
Instance Method Details
#banner ⇒ Object
11 12 13 |
# File 'lib/generators/sufia/models/cached_stats_generator.rb', line 11 def say_status("info", "ADDING STATS CACHING-RELATED SUFIA MODELS", :blue) end |
#copy_migrations ⇒ Object
Setup the database migrations
16 17 18 19 20 21 22 23 |
# File 'lib/generators/sufia/models/cached_stats_generator.rb', line 16 def copy_migrations [ 'create_file_view_stats.rb', 'create_file_download_stats.rb' ].each do |file| better_migration_template file end end |