Skip to content

Commit 83209e4

Browse files
committed
need this too :)
1 parent 5076029 commit 83209e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/data_migrations.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace :data_migrations do
8585
attribute_category_id: categories_for_this_page_type_and_user,
8686
user_id: referencing_page.user_id,
8787
field_type: 'link',
88-
old_column_source: link.name == Deityship.name ? 'deity_characters' : relation_params[:through_relation].pluralize
88+
old_column_source: link.class.name == Deityship.name ? 'deity_characters' : relation_params[:through_relation].pluralize
8989
)
9090

9191
if attribute_field.count > 1

0 commit comments

Comments
 (0)