Class: SeedUpgrade::ReviseModelGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SeedUpgrade::ReviseModelGenerator
- Includes:
- GeneratorHelpers, VkillGemsMethods::Rails::Generators::Base
- Defined in:
- lib/generators/seed_upgrade/revise_model/revise_model_generator.rb
Instance Method Summary collapse
Methods included from GeneratorHelpers
Instance Method Details
#create_models_seed_file ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/generators/seed_upgrade/revise_model/revise_model_generator.rb', line 9 def create_models_seed_file ::ActiveRecord::Base.models do |model, columns| create_file "db/seeds/#{ model.name.underscore }.rb", generate_seed_file_data(model.name.underscore) end end |