method

build

rails latest stable - Class: Rails::Generators::Database

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

build(database_name)
public

No documentation available.

# File railties/lib/rails/generators/database.rb, line 9
        def build(database_name)
          case database_name
          when "mysql" then MySQL.new
          when "postgresql" then PostgreSQL.new
          when "trilogy" then MariaDB.new
          when "sqlite3" then SQLite3.new
          else Null.new
          end
        end