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

Version Path
decidim-core-0.2.0 db/migrate/20170119150255_create_user_group_memberships.rb
decidim-core-0.1.0 db/migrate/20170119150255_create_user_group_memberships.rb
decidim-core-0.0.8.1 db/migrate/20170119150255_create_user_group_memberships.rb
decidim-core-0.0.7 db/migrate/20170119150255_create_user_group_memberships.rb
decidim-core-0.0.6 db/migrate/20170119150255_create_user_group_memberships.rb
decidim-core-0.0.5 db/migrate/20170119150255_create_user_group_memberships.rb
decidim-core-0.0.3 db/migrate/20170119150255_create_user_group_memberships.rb
decidim-core-0.0.2 db/migrate/20170119150255_create_user_group_memberships.rb