Skip to content

Commit

Permalink
Add another stub for Entitlement to avoid loading from app folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Apr 7, 2016
1 parent 99d32cf commit 6b7afbb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
class RemoveMiqUserRoleFromMiqGroups < ActiveRecord::Migration[5.0]
class MiqGroup < ActiveRecord::Base
has_one :entitlement, :class_name => RemoveMiqUserRoleFromMiqGroups::Entitlement
has_one :entitlement, :class_name => 'RemoveMiqUserRoleFromMiqGroups::Entitlement'
end

class Entitlement < ActiveRecord::Base
belongs_to :miq_group, :class_name => RemoveMiqUserRoleFromMiqGroups::MiqGroup
belongs_to :miq_user_role, :class_name => RemoveMiqUserRoleFromMiqGroups::MiqUserRole
belongs_to :miq_group, :class_name => 'RemoveMiqUserRoleFromMiqGroups::MiqGroup'
belongs_to :miq_user_role, :class_name => 'RemoveMiqUserRoleFromMiqGroups::MiqUserRole'
end

class MiqUserRole < ActiveRecord::Base
has_many :entitlements, :class_name => RemoveMiqUserRoleFromMiqGroups::Entitlement
has_many :entitlements, :class_name => 'RemoveMiqUserRoleFromMiqGroups::Entitlement'
end

def up
Expand Down

0 comments on commit 6b7afbb

Please sign in to comment.