Sha256: 2d4af43b4fea0471c49fb1a3efc9de2b8c85b9d9f48ed6b62faf670704784a5d
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
module Reso module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path("../templates", __FILE__) desc "Copy migration files to your application." def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S%L") end def create_model_file %w[reso_enumerations reso_enumeration_assignments].each do |name| migration_template "create_#{name}.rb", "db/migrate/create_#{name}.rb" sleep 0.1 end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reso-0.2.2 | lib/generators/reso/install/install_generator.rb |