class HeatmapRails::InstallGenerator

Public Class Methods

next_migration_number(path) click to toggle source
# File lib/generators/heatmap_rails/install_generator.rb, line 10
def self.next_migration_number(path)
  Time.now.utc.strftime("%Y%m%d%H%M%S")
end

Public Instance Methods

create_model_file() click to toggle source
# File lib/generators/heatmap_rails/install_generator.rb, line 14
def create_model_file
  migration_template "initializer.rb", "db/migrate/create_heat_maps.rb"
end