Class: KeycloakRails::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/keycloak_rails/install/install_generator.rb

Constant Summary collapse

TABLE_NAME =
'keycloak_rails_sso'

Instance Method Summary collapse

Instance Method Details

#generate_keycloak_rails_modelObject



12
13
14
# File 'lib/generators/keycloak_rails/install/install_generator.rb', line 12

def generate_keycloak_rails_model
  generate :migration, "create_#{TABLE_NAME}", 'recipient:references{polymorphic}', 'sub:string:index'
end