Sha256: f98a5c38d6c7158633b80d3545ef245c81584fedbc6920516fa8c922eec86a50

Contents?: true

Size: 481 Bytes

Versions: 3

Compression:

Stored size: 481 Bytes

Contents

class CreateAuthzScopingRules < ActiveRecord::Migration[5.2]
  def change
    create_table :authz_scoping_rules do |t|
      t.string :scopable, index: true
      t.references :authz_role, foreign_key: true, null: false,
                   index: true
      t.string :keyword, index: true

      t.timestamps
    end
    add_index(:authz_scoping_rules,
              [:authz_role_id, :scopable],
              unique: true,
              name: 'authz_srs_role_scopable')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authz-0.0.5 db/migrate/20190102030242_create_authz_scoping_rules.rb
authz-0.0.4 db/migrate/20190102030242_create_authz_scoping_rules.rb
authz-0.0.3 db/migrate/20190102030242_create_authz_scoping_rules.rb