Class: EmptyEye::Generators::EmptyEyeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/empty_eye/empty_eye_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_migrationObject



6
7
8
9
# File 'lib/rails/generators/empty_eye/empty_eye_generator.rb', line 6

def add_migration
  timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S")
  template("migration.rb", "db/migrate/#{timestamp}_create_empty_eye_views_table.rb")
end