Sha256: 0182bf70db69020450d45e5ccb3df67d276819d157b787d639b88d27c12670c5
Contents?: true
Size: 497 Bytes
Versions: 134
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true 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
134 entries across 134 versions & 2 rubygems