-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #18820 - fill in CV id on components #6690
Conversation
@parthaa do you mind reviewing? |
@@ -0,0 +1,10 @@ | |||
class FillInContentViewComponents < ActiveRecord::Migration | |||
def up | |||
Katello::ContentViewComponent.find_each do |cvc| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you need to define this model in the migration ?
@parthaa updated |
class FakeContentView < ActiveRecord::Base | ||
self.table_name = 'katello_content_views' | ||
|
||
has_many :content_view_components, :class_name => "Katello::FakeContentViewVersion", :dependent => :destroy, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt this be something like FillInContentViewComponents::FakeContentViewVersion ?
during the migration to add latest to component content views, the content view id field is used but not populated during the migration.
ack |
during the migration to add latest to component
content views, the content view id field is used
but not populated during the migration.