Skip to content

Commit

Permalink
fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
whomingbird committed Oct 9, 2023
1 parent 6d48385 commit b41ce02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class RenameCustomMetadataToExtendedMetadata < ActiveRecord::Migration[6.1]
def change

rename_table :custom_metadata, :extended_metadata
rename_column :extended_metadata, :extended_metadata_type_id, :extended_metadata_type_id
rename_column :extended_metadata, :extended_metadata_attribute_id, :extended_metadata_attribute_id
rename_column :extended_metadata, :custom_metadata_type_id, :extended_metadata_type_id
rename_column :extended_metadata, :custom_metadata_attribute_id, :extended_metadata_attribute_id
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class RenameCustomMetadataAttributeToExtendedMetadataAttribute < ActiveRecord::M
def change
rename_table :extended_metadata_attributes, :extended_metadata_attributes

rename_column :extended_metadata_attributes, :extended_metadata_type_id, :extended_metadata_type_id
rename_column :extended_metadata_attributes, :linked_extended_metadata_type_id, :linked_extended_metadata_type_id
rename_column :extended_metadata_attributes, :custom_metadata_type_id, :extended_metadata_type_id
rename_column :extended_metadata_attributes, :linked_custom_metadata_type_id, :linked_extended_metadata_type_id
end
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class RenameCustomMetadataTypesToExtendedMetadataTypes < ActiveRecord::Migration[6.1]
def change
rename_table :extended_metadata_types, :extended_metadata_types
rename_table :custom_metadata_types, :extended_metadata_types
end
end

0 comments on commit b41ce02

Please sign in to comment.