Skip to content
Snippets Groups Projects
Commit 23082e25 authored by DJ Mountney's avatar DJ Mountney
Browse files

Fix migration NameError in rails env helper

We need to use double quotes within the command, as the entire command is
wrapped in single quotes.

Changelog: fixed
parent c2b2d89d
No related branches found
No related tags found
2 merge requests!55Intermediate build after shift of stable series,!54GitLab 14.4
......@@ -10,7 +10,7 @@
require "yaml";
require "active_record";
ActiveRecord::Base.establish_connection(YAML.load_file("config/database.yml")['production']['main']);
ActiveRecord::Base.establish_connection(YAML.load_file("config/database.yml")["production"]["main"]);
version_row = ActiveRecord::Base.connection.execute("SELECT VERSION()").first;
puts version_row["version"].match(Regexp.new("\\\A(?:PostgreSQL |)([^\\\s]+).*\\\z"))[1];
).join(' ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment