Class: SeedUpgrade::ModelGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
GeneratorHelpers, VkillGemsMethods::Rails::Generators::Base
Defined in:
lib/generators/seed_upgrade/model/model_generator.rb

Instance Method Summary collapse

Methods included from GeneratorHelpers

#generate_seed_file_data

Instance Method Details

#create_seed_fileObject



8
9
10
# File 'lib/generators/seed_upgrade/model/model_generator.rb', line 8

def create_seed_file
  create_file "db/seeds/#{ singular_name }.rb", generate_seed_file_data(singular_name)
end