Sha256: de4fe2b5479de29fb9a63a285fd4de1c8dc14df76d65667801e086762c1ee8e0

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

require "rails/generators/active_record"

module EmailEvents
  class InstallGenerator < ::Rails::Generators::Base
    include ::Rails::Generators::Migration
    desc "Generates migration for email_events"

    source_paths << File.join(File.dirname(__FILE__), "templates")

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
email_events-1.0 lib/generators/email_events/install_generator.rb