Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class ChangeTeamToTextOnCoplanUsers < ActiveRecord::Migration[8.1]
def up
change_column :coplan_users, :team, :text
end

def down
change_column :coplan_users, :team, :string
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Make rollback resilient to long team values

The down migration narrows coplan_users.team back to string (VARCHAR(255)), but this migration exists specifically because real team paths now exceed 255 chars. In MySQL strict mode, rolling back after any long value is written will fail with Data too long, which can block an emergency deploy rollback. Consider making down explicitly irreversible or truncating/cleaning oversized rows before the type change so rollback can complete predictably.

Useful? React with 👍 / 👎.

end
end