# frozen_string_literal: true

#
# Copyright (C) 2022 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#

class ChangeBookmarksBookmarksToText < ActiveRecord::Migration[6.1]
  tag :predeploy

  def change
    change_column :bookmarks_bookmarks, :name, :text
    change_column :bookmarks_bookmarks, :url, :text
  end
end

Allow arbitrary length bookmark names and urls
Allow arbitrary length bookmark names and urls

fixes FOO-2891

Change-Id: I9430b2ef463341739ac93fd0718f78c2a1e18c6e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293834
Tested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instructure.com>
Reviewed-by: Alex Slaughter <11669a22a05ead38ed9badafd55ef4c5386724b6@instructure.com>
Migration-Review: Alex Slaughter <11669a22a05ead38ed9badafd55ef4c5386724b6@instructure.com>
QA-Review: Jacob Burroughs <8ecea6e385af5cf9f53123f5ca17fb5fd6a6d4b2@instructure.com>
Product-Review: Jacob Burroughs <8ecea6e385af5cf9f53123f5ca17fb5fd6a6d4b2@instructure.com>
