Class: ActiveRecord::PostgresPubSub::NotifyOnInsertGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Generators::Migration
Defined in:
lib/generators/active_record/postgres_pub_sub/notify_on_insert_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_migration_fileObject



16
17
18
19
# File 'lib/generators/active_record/postgres_pub_sub/notify_on_insert_generator.rb', line 16

def create_migration_file
  migration_template("create_notify_on_insert_trigger.rb.erb",
                     "db/migrate/create_notify_on_#{table_name}_insert_trigger.rb")
end