class RailsRateableGenerator

Public Class Methods

next_migration_number(path) click to toggle source
# File lib/generators/rails_rateable/rails_rateable_generator.rb, line 9
def self.next_migration_number(path)
  Time.now.utc.strftime("%Y%m%d%H%M%S")
end
source_root() click to toggle source
# File lib/generators/rails_rateable/rails_rateable_generator.rb, line 5
def self.source_root
  @_rails_rateable_source_root ||= File.expand_path("../templates", __FILE__)
end

Public Instance Methods

copy_migration_file() click to toggle source
# File lib/generators/rails_rateable/rails_rateable_generator.rb, line 13
def copy_migration_file
  migration_template 'migration.rb', 'db/migrate/rails_rateable_migration.rb'
end