about summary refs log tree commit diff
path: root/db/migrate/20170905165803_add_local_to_statuses.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-09-06 20:57:52 +0200
committerGitHub <noreply@github.com>2017-09-06 20:57:52 +0200
commit11bddd31ce33b654ef72b00221715e6026486e7c (patch)
treeb848fa7a45bc825dfb6accf5f937a14bc73df8af /db/migrate/20170905165803_add_local_to_statuses.rb
parentdd5cb5085c35516163c7cce1289c4bd81c936a28 (diff)
Fix locking migration on statuses table. Nullable column and NO default value (#4825)
Diffstat (limited to 'db/migrate/20170905165803_add_local_to_statuses.rb')
-rw-r--r--db/migrate/20170905165803_add_local_to_statuses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170905165803_add_local_to_statuses.rb b/db/migrate/20170905165803_add_local_to_statuses.rb
index e89a0469d..fb4e7019d 100644
--- a/db/migrate/20170905165803_add_local_to_statuses.rb
+++ b/db/migrate/20170905165803_add_local_to_statuses.rb
@@ -1,5 +1,5 @@
 class AddLocalToStatuses < ActiveRecord::Migration[5.1]
   def change
-    add_column :statuses, :local, :boolean, null: true, default: false
+    add_column :statuses, :local, :boolean, null: true, default: nil
   end
 end