Skip to content

Commit 0a0456e

Browse files
committed
Prepare to remove Organization#short_name column
1 parent a19156b commit 0a0456e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/models/organization.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ class Organization < ApplicationRecord
4444

4545
include Deadlinable
4646

47+
# TODO: remove once migration "20250504183911_remove_short_name_from_organizations" has run in production
48+
self.ignored_columns += ["short_name"]
49+
4750
validates :name, presence: true
4851
validates :url, format: { with: URI::DEFAULT_PARSER.make_regexp, message: "it should look like 'http://www.example.com'" }, allow_blank: true
4952
validates :email, format: { with: URI::MailTo::EMAIL_REGEXP }, allow_blank: true

0 commit comments

Comments
 (0)