Sha256: 4b6cdb533b145ab15f4ef5ef7b6b7aabe40ed6a16d1d363cae3fe87f1fef003f
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
require_relative 'abstract_migration_generator' class Sufia::CachedStatsGenerator < Sufia::AbstractMigrationGenerator source_root File.expand_path('../templates', __FILE__) desc """ This generator adds the ability to cache usage stats to your application: 1. Creates several database migrations if they do not exist in /db/migrate """ def banner say_status("info", "ADDING STATS CACHING-RELATED TABLES", :blue) end # Setup the database migrations def copy_migrations [ 'create_file_view_stats.rb', 'create_file_download_stats.rb' ].each do |file| better_migration_template file end end end
Version data entries
3 entries across 3 versions & 1 rubygems