summaryrefslogtreecommitdiff
path: root/db/migrate/20151103134857_create_lfs_objects.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-11-28 16:45:08 +0100
committerRémy Coutable <remy@rymai.me>2016-11-28 16:45:08 +0100
commitc33b489853eb025c4d2d9c4a79630109ddf55e14 (patch)
tree6640d889e27b3736f614aa642bbce27cad709e62 /db/migrate/20151103134857_create_lfs_objects.rb
parente6d31ce31ff9d408503ea7b0ba1e6faad7cd5290 (diff)
downloadgitlab-ce-c33b489853eb025c4d2d9c4a79630109ddf55e14.tar.gz
Add `null: true` to timestamps in migrations that does not define it23666-set-null-true-for-timestamps-columns-in-migrations
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/20151103134857_create_lfs_objects.rb')
-rw-r--r--db/migrate/20151103134857_create_lfs_objects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20151103134857_create_lfs_objects.rb b/db/migrate/20151103134857_create_lfs_objects.rb
index 745b52e2b24..fadaf637cec 100644
--- a/db/migrate/20151103134857_create_lfs_objects.rb
+++ b/db/migrate/20151103134857_create_lfs_objects.rb
@@ -5,7 +5,7 @@ class CreateLfsObjects < ActiveRecord::Migration
t.string :oid, null: false, unique: true
t.integer :size, null: false
- t.timestamps
+ t.timestamps null: true
end
end
end