Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-11-28 18:45:08 +0300
committerRémy Coutable <remy@rymai.me>2016-11-28 18:45:08 +0300
commitc33b489853eb025c4d2d9c4a79630109ddf55e14 (patch)
tree6640d889e27b3736f614aa642bbce27cad709e62 /db/migrate/20150108073740_create_application_settings.rb
parente6d31ce31ff9d408503ea7b0ba1e6faad7cd5290 (diff)
Add `null: true` to timestamps in migrations that does not define it
This is to ensure that migrations will still be consitent when we will upgrade to Rails 5 which default to `null: false` for timestamps columns. Fixes #23666. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'db/migrate/20150108073740_create_application_settings.rb')
-rw-r--r--db/migrate/20150108073740_create_application_settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20150108073740_create_application_settings.rb b/db/migrate/20150108073740_create_application_settings.rb
index dfa2f765357..c26a7c39574 100644
--- a/db/migrate/20150108073740_create_application_settings.rb
+++ b/db/migrate/20150108073740_create_application_settings.rb
@@ -8,7 +8,7 @@ class CreateApplicationSettings < ActiveRecord::Migration
t.boolean :gravatar_enabled
t.text :sign_in_text
- t.timestamps
+ t.timestamps null: true
end
end
end