Sha256: 8d373c8f30622bba2888932be04c71c5ec1e666b8aa8aaf7be24db27f6ae954a
Contents?: true
Size: 708 Bytes
Versions: 9
Compression:
Stored size: 708 Bytes
Contents
# frozen_string_literal: true require 'rails/generators/migration' module RailsWorkflow module Generators class InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc 'add the migrations' def self.next_migration_number(_path) if @prev_migration_nr @prev_migration_nr += 1 else @prev_migration_nr = Time.now.utc.strftime('%Y%m%d%H%M%S').to_i end @prev_migration_nr.to_s end def copy_migrations migration_template 'create_workflow_processes.rb', 'db/migrate/create_workflow_processes.rb' end end end end
Version data entries
9 entries across 9 versions & 1 rubygems