Sha256: 6a03fbadb7abda2d931b9912176e04f9163d42d806a980ea8a21f1c26b1054cc

Contents?: true

Size: 380 Bytes

Versions: 11

Compression:

Stored size: 380 Bytes

Contents

class CreateDecidimAuthorizations < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_authorizations do |t|
      t.string :name, null: false
      t.jsonb :metadata
      t.references :decidim_user, null: false, foreign_key: true, index: true

      t.timestamps
    end

    add_index :decidim_authorizations, [:decidim_user_id, :name], unique: true
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
decidim-core-0.2.0 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.1.0 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.8.1 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.7 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.6 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.5 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.3 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.2 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.1 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.1.alpha9 db/migrate/20161018091013_create_decidim_authorizations.rb
decidim-core-0.0.1.alpha8 db/migrate/20161018091013_create_decidim_authorizations.rb