Sha256: 96b45c452c4b6057da41fc07683c1034d4901e763bb9b28d5c3f3f19a4c0cdb1
Contents?: true
Size: 679 Bytes
Versions: 10
Compression:
Stored size: 679 Bytes
Contents
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) unless @prev_migration_nr @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i else @prev_migration_nr += 1 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
10 entries across 10 versions & 1 rubygems