Class: Kowl::UuidGenerator
- Inherits:
-
Generators::Base
- Object
- Rails::Generators::Base
- Generators::Base
- Kowl::UuidGenerator
- Defined in:
- lib/kowl/generators/uuid_generator.rb
Instance Method Summary collapse
-
#add_to_migration ⇒ Object
Update pgcrypto migration file to include enable tjhe pgcrypt extension for postgres.
-
#generate_migration ⇒ Object
Generate migration to add pgcrypto_extension to the database.
Methods inherited from Generators::Base
default_source_root, source_paths
Methods included from Docker
#alpine_docker_dependencies, #app_js_volumes, #app_volumes, #db_volumes, #debian_database_dependencies, #debian_docker_dependencies, #docker_app_command, #docker_compose_database_string, #docker_databases, #docker_depends_on, #docker_port_watcher, #docker_redis_service, #docker_sidekiq_service, #docker_variables, #docker_volumes, #docker_webpacker_service, #dockerfile_database_args, #dockerfile_migration_snip, #js_volumes, #mysql_volumes, #postgresql_volumes, #redis_volumes
Methods included from Actions
#add_extension_routes, #add_package, #append_to_file, #database_route, #dev_config, #dup_file, #file_exists?, #mailer_gems, #mailer_route, #mk_dir, #move_file, #pry_gems, #rails_cmd, #remove_dir, #remove_file, #remove_gem, #replace_string_in_file, #robocop_test_engine, #sidekiq_route, #template_linter_gems
Instance Method Details
#add_to_migration ⇒ Object
Update pgcrypto migration file to include enable tjhe pgcrypt extension for postgres
19 20 21 |
# File 'lib/kowl/generators/uuid_generator.rb', line 19 def add_to_migration Dir.glob('db/migrate/**_enable_pgcrypto_extension.rb').select { |e| update_uuid_migration(e) } end |
#generate_migration ⇒ Object
Generate migration to add pgcrypto_extension to the database
14 15 16 |
# File 'lib/kowl/generators/uuid_generator.rb', line 14 def generate_migration generate('migration enable_pgcrypto_extension') end |