Class: ActiveRecord::Dbt::Generators::EnumGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ActiveRecord::Dbt::Generators::EnumGenerator
- Defined in:
- lib/generators/active_record/dbt/enum/enum_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_enum_seed_csv_file ⇒ Object
11 12 13 |
# File 'lib/generators/active_record/dbt/enum/enum_generator.rb', line 11 def create_enum_seed_csv_file create_file csv.export_path, csv.dump end |
#create_enum_seed_yml_file ⇒ Object
15 16 17 |
# File 'lib/generators/active_record/dbt/enum/enum_generator.rb', line 15 def create_enum_seed_yml_file create_file yml.export_path, yml.dump end |