summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-18 17:55:10 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-18 17:55:10 +0100
commit8d1167c53e9edaf6e5a2b3e89dd4fd2a2c872dbb (patch)
tree99d0ebae12cafe2f4be9decf5d3182a5ea9c9438
parent12e91c4932e32808e5a9bf3f454920e7fb1b7d61 (diff)
Added GsParameter.table_exists? #98
-rw-r--r--config/initializers/update_gs_version_number.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/update_gs_version_number.rb b/config/initializers/update_gs_version_number.rb
index 303b1e0..914f007 100644
--- a/config/initializers/update_gs_version_number.rb
+++ b/config/initializers/update_gs_version_number.rb
@@ -1,6 +1,6 @@
# The Gemeinschaft version is stored in an environment variable.
# It equals the branch in git.
#
-if !ENV['GS_VERSION'].nil? && GsParameter.get('GEMEINSCHAFT_VERSION') != ENV['GS_VERSION']
+if !ENV['GS_VERSION'].nil? && GsParameter.table_exists? && GsParameter.get('GEMEINSCHAFT_VERSION') != ENV['GS_VERSION']
GsParameter.where(:name => 'GEMEINSCHAFT_VERSION').first.update_attributes(:name => ENV['GS_VERSION'])
end \ No newline at end of file