Class: UnavailableDateGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
Defined in:
lib/generators/unavailable_date_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_migrationObject



11
12
13
# File 'lib/generators/unavailable_date_generator.rb', line 11

def generate_migration
  migration_template 'migration.rb', 'db/migrate/create_unavailable_dates.rb'
end