Sha256: 9e52f7cab15fa38f3c978fe986685fac24dbb58c1c479d7107e514591aa9871e
Contents?: true
Size: 541 Bytes
Versions: 5
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true require 'rails/generators/active_record' require_relative 'migration_data' module CoinsPaid module Generators class MigrationGenerator < ActiveRecord::Generators::Base argument :name, default: 'create_coins_paid_addresses' source_root File.expand_path('templates', __dir__) def copy_coins_paid_migration migration_template 'migration.rb', "#{db_migrate_path}/#{file_name}.rb" end def migration_data CoinsPaid::MigrationData.get end end end end
Version data entries
5 entries across 5 versions & 1 rubygems