The database.yml file written accommodates oddities in requirements of the ActiveRecord SQL Server Adapter, for instance, decoding the username part of the URL, since SQL Server sometimes requires a
username@server as the username.
DATABASE_URI environment variable, not to be confused with the
DATABASE_URL environment variable supported by Rails. Remove the
DATABASE_URL environment variable. If your installation of SQL Server requires the server to be part of the username, eg
username@server, encode the
@ symbol in the username portion of the URL, eg:
Copy the snippet above into CLI.