Class: SimpleTaggable::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SimpleTaggable::InstallGenerator
- Defined in:
- lib/generators/simple_taggable/install.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
7 8 9 10 |
# File 'lib/generators/simple_taggable/install.rb', line 7 def create_migration_file copy_file "create_tags.rb", "db/migrate/#{Time.now.utc.strftime("%Y%m%d%H%M%S")}_create_tags.rb" copy_file "create_taggings.rb", "db/migrate/#{(Time.now.utc + 1).strftime("%Y%m%d%H%M%S")}_create_taggings.rb" end |