Skip to content

Commit

Permalink
Changed index name for resource in migration file for ezapp generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Dausenau authored and Andreas Dausenau committed Feb 17, 2023
1 parent 5dfa668 commit 17e0d27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CreateUserGroupAssignments < ActiveRecord::Migration[5.2]
create_table :<%= EzOnRails::ApplicationRecord::TABLE_PREFIX %>user_group_assignments do |t|
t.belongs_to :user, index: true, null: false, foreign_key: true
t.belongs_to :group, index: true, null: false, foreign_key: { to_table: :eor_groups }
t.belongs_to :resource, index: true, null: true, polymorphic: true
t.belongs_to :resource, index: { name: '<%= EzOnRails::ApplicationRecord::TABLE_PREFIX %>user_group_assignments_resource_index' }, null: true, polymorphic: true

t.belongs_to :owner, index: true, null: true, foreign_key: { to_table: :users }

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: EzOnRails
specs:
ez_on_rails (0.7.4)
ez_on_rails (0.8.0)
cancancan
cocoon
devise
Expand Down

0 comments on commit 17e0d27

Please sign in to comment.