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