Class: EmailEvents::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/email_events/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



14
15
16
# File 'lib/generators/email_events/install_generator.rb', line 14

def self.next_migration_number(dirname)
  ::ActiveRecord::Generators::Base.next_migration_number(dirname)
end

Instance Method Details

#create_migration_fileObject



10
11
12
# File 'lib/generators/email_events/install_generator.rb', line 10

def create_migration_file
  migration_template "create_sent_email_data.rb", "db/migrate/create_sent_email_data.rb"
end