Class: AttributeChangerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/attribute_changer_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_migrationObject



6
7
8
# File 'lib/generators/attribute_changer_generator.rb', line 6

def copy_migration
  copy_file "create_attribute_changer_attribute_changes.rb", "db/migrate/#{Time.now.utc.strftime("%Y%m%d%H%M%S")}_create_attribute_changer_attribute_changes.rb"
end