Sha256: 3910c27a166a8b1f0cb510197e6875761ae2d787e689e47213b319fe0401da5c
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true require 'rails/generators/migration' require 'rails/generators/active_record' module Hws module Transactions # :nodoc: module Generators # :nodoc: class InstallGenerator < ::Rails::Generators::Base # :nodoc: include Rails::Generators::Migration source_root File.expand_path('templates', __dir__) def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end desc 'copying migrations to db/migrate' def copy_migrations migration_template 'create_transaction_group_and_entries.rb.erb', 'db/migrate/create_hws_transaction_tables.rb' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hws-transactions-0.1.1 | lib/generators/hws/transactions/install_generator.rb |
hws-transactions-0.1.0 | lib/generators/hws/transactions/install_generator.rb |