Class: Tokens::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/tokens/generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_migrationsObject



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