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