Sha256: 9a9108d80470f1237d7390d060e1aee88efcf41ed5b6a767123a432373ae87bb
Contents?: true
Size: 466 Bytes
Versions: 8
Compression:
Stored size: 466 Bytes
Contents
class CreateUserGroupMemberships < ActiveRecord::Migration[5.0] def change create_table :decidim_user_group_memberships do |t| t.references :decidim_user, null: false, index: true t.references :decidim_user_group, null: false, index: true t.timestamps end add_index :decidim_user_group_memberships, [:decidim_user_id, :decidim_user_group_id], unique: true, name: "decidim_user_group_memberships_unique_user_and_group_ids" end end
Version data entries
8 entries across 8 versions & 1 rubygems