Sha256: 25ea5c55eb246282614ea2b91187fb939d7d59a26d5a97622a23889e33bd5768
Contents?: true
Size: 468 Bytes
Versions: 17
Compression:
Stored size: 468 Bytes
Contents
require 'rails/generators/active_record' module StarkitBanking # Migration generator that creates migration file from template class MigrationsGenerator < ActiveRecord::Generators::Base source_root File.expand_path("../templates", __FILE__) argument :name, :type => :string, :default => 'create_api_steps' # Create migration in project's folder def generate_files migration_template 'api_step.rb', "db/migrate/#{name}.rb" end end end
Version data entries
17 entries across 17 versions & 1 rubygems