class FrpEventsourcing::Generators::MigrationGenerator
Public Instance Methods
create_migration()
click to toggle source
# File lib/frp-eventsourcing/generators/migration_generator.rb, line 8 def create_migration template 'migration_template.rb', "db/migrate/#{timestamp}_create_event_store_events.rb" end
Private Instance Methods
timestamp()
click to toggle source
# File lib/frp-eventsourcing/generators/migration_generator.rb, line 14 def timestamp Time.now.strftime('%Y%m%d%H%M%S') end