Class: Stitches::AddDisabledAtToApiClientsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/stitches/add_disabled_at_to_api_clients_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(path) ⇒ Object



9
10
11
# File 'lib/stitches/add_disabled_at_to_api_clients_generator.rb', line 9

def self.next_migration_number(path)
  Time.now.utc.strftime("%Y%m%d%H%M%S")
end

Instance Method Details

#update_api_clients_tableObject



14
15
16
# File 'lib/stitches/add_disabled_at_to_api_clients_generator.rb', line 14

def update_api_clients_table
  migration_template "db/migrate/add_disabled_at_to_api_clients.rb", "db/migrate/add_disabled_at_to_api_clients.rb"
end