Sha256: 38e3db05b5b62efe3d595b1f942f25f6f8b31af506f2be3bebbea65aa6323b5a
Contents?: true
Size: 300 Bytes
Versions: 15
Compression:
Stored size: 300 Bytes
Contents
class AddUniquenessIndexToUsersGroups < ActiveRecord::Migration def up add_index(:faalis_groups_users, [ :user_id, :group_id ], unique: true, name: 'by_user_and_group') end def down remove_index(:faalis_groups_users, name: 'by_user_and_group') end end
Version data entries
15 entries across 15 versions & 1 rubygems