Skip to content

Commit

Permalink
Add Trilogy and Bun options (new in Rails 7.1) (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson authored Nov 5, 2023
1 parent acbe6c2 commit 0304aaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nextgen/commands/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def ask_database
"MySQL" => "mysql"
}
all_databases = common_databases.merge(
%w[MySQL Oracle SQLServer JDBCMySQL JDBCSQLite3 JDBCPostgreSQL JDBC].to_h do |name|
%w[MySQL Trilogy Oracle SQLServer JDBCMySQL JDBCSQLite3 JDBCPostgreSQL JDBC].to_h do |name|
[name, name.downcase]
end,
"None (disable Active Record)" => nil
Expand Down Expand Up @@ -185,6 +185,7 @@ def ask_javascript
rails_opts.javascript = prompt.select(
"Which JavaScript bundler will you use with the asset pipeline?",
"Importmap (default)" => "importmap",
"Bun" => "bun",
"ESBuild" => "esbuild",
"Rollup" => "rollup",
"Webpack" => "webpack",
Expand Down
1 change: 1 addition & 0 deletions lib/nextgen/rails_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class RailsOptions
DATABASES = %w[
postgresql
mysql
trilogy
sqlite3
oracle
sqlserver
Expand Down

0 comments on commit 0304aaf

Please sign in to comment.