class OauthService::Generators::MigrationsGenerator

Public Class Methods

next_migration_number(path) click to toggle source
# File lib/generators/oauth_service/migrations_generator.rb, line 15
def self.next_migration_number(path)
  Time.now.utc.strftime("%Y%m%d%H%M%S")
end

Public Instance Methods

create_migrations() click to toggle source
# File lib/generators/oauth_service/migrations_generator.rb, line 11
def create_migrations
  migration_template "create_tables.rb", "db/migrate/create_tables.rb"
end