Skip to content

Commit aa508a1

Browse files
authored
Add deprecated warning to old db common functions (#4563)
1 parent 7544d5e commit aa508a1

File tree

1 file changed

+2
-0
lines changed
  • lib/cloud_controller

1 file changed

+2
-0
lines changed

lib/cloud_controller/db.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def self.common(migration, table_key=nil)
187187
timestamps(migration, table_key)
188188
end
189189

190+
# DEPRECATED: This migration utility function is out of date and should only be used by legacy migrations.
190191
def self.labels_common(migration, table_key, foreign_resource_table_key)
191192
migration.String :resource_guid, size: 255
192193
migration.String :key_prefix, size: 253
@@ -198,6 +199,7 @@ def self.labels_common(migration, table_key, foreign_resource_table_key)
198199
migration.index %i[key_prefix key_name value], name: :"#{table_key}_compound_index"
199200
end
200201

202+
# DEPRECATED: This migration utility function is out of date and should only be used by legacy migrations.
201203
def self.annotations_common(migration, table_key, foreign_resource_table_key)
202204
migration.String :resource_guid, size: 255
203205
migration.String :key_prefix, size: 253

0 commit comments

Comments
 (0)