Sha256: 910d0c5e3e0a03467ef0788e0623c51e7eadec2e18ab9a526e8c4ca6fa581a0f
Contents?: true
Size: 671 Bytes
Versions: 6
Compression:
Stored size: 671 Bytes
Contents
require 'rails/generators/migration' module ReviewAndApprove 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_cache_records.rb", "db/migrate/create_cache_records.rb" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems