Sha256: 9bb163ae4523ef106dc73c1abc04a6785084f0f5e1982ba3f4cabd84711a8f59
Contents?: true
Size: 541 Bytes
Versions: 10
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
10 entries across 10 versions & 1 rubygems