Class: LazyRails::PromptGenerators::SelectDb

Inherits:
Base
  • Object
show all
Defined in:
lib/lazy_rails/prompt_generators.rb

Instance Attribute Summary

Attributes inherited from Base

#prompt

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LazyRails::PromptGenerators::Base

Instance Method Details

#callObject



22
23
24
25
26
27
28
29
# File 'lib/lazy_rails/prompt_generators.rb', line 22

def call
  prompt.select("Choose your database:", show_help: :always) do |menu|
    menu.choice "SQLite(default)", "sqlite3"
    menu.choice "MySQL", "mysql"
    menu.choice "Trilogy", "trilogy"
    menu.choice "PostgreSQL", "postgresql"
  end
end