Class: Tagger::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Tagger::InstallGenerator
- Defined in:
- lib/tagger/generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_migrations ⇒ Object
7 8 9 10 11 |
# File 'lib/tagger/generator.rb', line 7 def copy_migrations stamp = proc {|time| time.utc.strftime("%Y%m%d%H%M%S")} copy_file "tags.rb", "db/migrate/#{stamp[Time.now]}_create_tags.rb" copy_file "taggings.rb", "db/migrate/#{stamp[1.second.from_now]}_create_taggings.rb" end |