Class: Sequel::Generators::Base
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Sequel::Generators::Base
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/rails/generators/sequel/base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.next_migration_number(dirname) ⇒ Object
Implement the required interface for Rails::Generators::Migration.
Class Method Details
.next_migration_number(dirname) ⇒ Object
Implement the required interface for Rails::Generators::Migration.
13 14 15 16 |
# File 'lib/rails/generators/sequel/base.rb', line 13 def self.next_migration_number(dirname) #:nodoc: next_migration_number = current_migration_number(dirname) + 1 [Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % next_migration_number].max end |