class FurtherGenerator

Public Class Methods

next_migration_number(path) click to toggle source
# File lib/generators/further/further_generator.rb, line 8
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/further/further_generator.rb, line 12
def create_model_file
  template "further_information.rb", "app/models/further_information.rb"
  migration_template "create_further_informations.rb", "db/migrate/create_further_informations.rb"
end