Module: ActiveAdminAccessControl::Generators::Helper::ClassMethods

Defined in:
lib/generators/active_admin_access_control/helper.rb

Instance Method Summary collapse

Instance Method Details

#next_migration_number(dirname) ⇒ Object

Define the next_migration_number method (necessary for the migration_template method to work)



12
13
14
15
# File 'lib/generators/active_admin_access_control/helper.rb', line 12

def next_migration_number(dirname)
  sleep 1 
  Time.new.utc.strftime("%Y%m%d%H%M%S")
end