class Pghero::Generators::SpaceStatsGenerator
Public Instance Methods
copy_migration()
click to toggle source
# File lib/generators/pghero/space_stats_generator.rb, line 10 def copy_migration migration_template "space_stats.rb", "db/migrate/create_pghero_space_stats.rb", migration_version: migration_version end
migration_version()
click to toggle source
# File lib/generators/pghero/space_stats_generator.rb, line 14 def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end