Class: Pu::Saas::MembershipGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pu::Saas::MembershipGenerator
- Includes:
- PlutoniumGenerators::Generator
- Defined in:
- lib/generators/pu/saas/membership_generator.rb
Instance Method Summary collapse
Methods included from PlutoniumGenerators::Generator
derive_association_name, find_shared_namespace, included
Methods included from PlutoniumGenerators::Concerns::Logger
#debug, #error, #exception, #info, #success, #warn
Methods included from PlutoniumGenerators::Concerns::Config
Instance Method Details
#start ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/generators/pu/saas/membership_generator.rb', line 25 def start validate_models_exist! generate_membership_model add_unique_index_to_migration add_default_to_role_column add_role_enum_to_model add_unique_validation_to_model add_associations_to_models add_associated_with_scope_to_entity rescue => e exception "#{self.class} failed:", e end |