Sha256: 2ec0058ac36eb03b12fed3871aaa82cf71a3e8d4870b8829a28a86a670984a7d

Contents?: true

Size: 557 Bytes

Versions: 142

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

class AddAdminParticipatoryProcessUserRoles < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_admin_participatory_process_user_roles do |t|
      t.integer :decidim_user_id
      t.integer :decidim_participatory_process_id
      t.string :role
      t.timestamps
    end

    add_index :decidim_admin_participatory_process_user_roles,
              [:decidim_participatory_process_id, :decidim_user_id, :role],
              unique: true,
              name: "index_unique_user_and_process_role"
  end
end

Version data entries

142 entries across 142 versions & 2 rubygems

Version Path
decidim-admin-0.7.3 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.7.2 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.7.1 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.7.0 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.6.8 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-0.6.8 decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.6.7 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-0.6.7 decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.6.6 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-0.6.6 decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.6.5 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-0.6.5 decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.6.4 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-0.6.4 decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.6.3 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-0.6.3 decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.6.2 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-0.6.2 decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-admin-0.6.1 db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb
decidim-0.6.1 decidim-admin/db/migrate/20161102144648_add_admin_participatory_process_user_roles.rb