Sha256: 55cba486125492ca2780494f372d25e0dbdda6057d3b46bed57a3c986765e1ca
Contents?: true
Size: 543 Bytes
Versions: 20
Compression:
Stored size: 543 Bytes
Contents
module Realogy module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path("../templates", __FILE__) desc "Copy migration file to your application." def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end def create_model_file %w[realogy_entities].each do |name| migration_template "create_#{name}.rb", "db/migrate/create_#{name}.rb" end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems