class HasNotifications::MigrationGenerator

Public Class Methods

next_migration_number(path) click to toggle source
# File lib/generators/has_notifications/migration/migration_generator.rb, line 12
def self.next_migration_number(path)
    Time.now.utc.strftime("%Y%m%d%H%M%S")
end
source_root() click to toggle source
# File lib/generators/has_notifications/migration/migration_generator.rb, line 8
def self.source_root
    File.join(File.dirname(__FILE__), "templates")
end

Public Instance Methods

create_migration_file() click to toggle source
# File lib/generators/has_notifications/migration/migration_generator.rb, line 16
def create_migration_file
    migration_template "migration.rb", "db/migrate/has_notifications_migration.rb"
end