class Eventy::ActiveRecordGenerator
Public Class Methods
next_migration_number(path)
click to toggle source
# File lib/generators/eventy/active_record_generator.rb, line 8 def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end
Public Instance Methods
copy_migrations()
click to toggle source
# File lib/generators/eventy/active_record_generator.rb, line 12 def copy_migrations migration_template 'setup_eventy.rb', "db/migrate/setup_eventy.rb" end