summaryrefslogtreecommitdiff
path: root/db/migrate/20190722104947_add_static_object_token_to_users.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20190722104947_add_static_object_token_to_users.rb')
-rw-r--r--db/migrate/20190722104947_add_static_object_token_to_users.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/db/migrate/20190722104947_add_static_object_token_to_users.rb b/db/migrate/20190722104947_add_static_object_token_to_users.rb
index 180e6a30b04..3983f076b3f 100644
--- a/db/migrate/20190722104947_add_static_object_token_to_users.rb
+++ b/db/migrate/20190722104947_add_static_object_token_to_users.rb
@@ -8,9 +8,13 @@ class AddStaticObjectTokenToUsers < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
+ # rubocop:disable Migration/AddColumnsToWideTables
+ # rubocop:disable Migration/PreventStrings
def up
- add_column :users, :static_object_token, :string, limit: 255 # rubocop:disable Migration/AddColumnsToWideTables
+ add_column :users, :static_object_token, :string, limit: 255
end
+ # rubocop:enable Migration/PreventStrings
+ # rubocop:enable Migration/AddColumnsToWideTables
def down
remove_column :users, :static_object_token