Sha256: 91ae098f76c02ab189fe25750181687abfe5a65cfed0b232fcf32d8ac796838e
Contents?: true
Size: 749 Bytes
Versions: 10
Compression:
Stored size: 749 Bytes
Contents
# frozen_string_literal: true require 'rails/generators' require 'rails/generators/active_record' module GoodJob # # Rails generator used for setting up GoodJob in a Rails application. # Run it with +bin/rails g good_job:install+ in your console. # class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration class << self delegate :next_migration_number, to: ActiveRecord::Generators::Base end source_paths << File.join(File.dirname(__FILE__), "templates/install") # Generates monolithic migration file that contains all database changes. def create_migration_file migration_template 'migrations/create_good_jobs.rb.erb', 'db/migrate/create_good_jobs.rb' end end end
Version data entries
10 entries across 10 versions & 1 rubygems