Sha256: e31b0afdf6518ff7a89304ca09f5c6468ada1965f896e312e212299e44209ef4

Contents?: true

Size: 460 Bytes

Versions: 4

Compression:

Stored size: 460 Bytes

Contents

class CreateAdeiaPermissions < ActiveRecord::Migration
  def change
    create_table :adeia_permissions do |t|
      t.references :owner, polymorphic: true, index: true
      t.references :element, index: true, foreign_key: true
      t.integer :permission_type
      t.boolean :read_right
      t.boolean :create_right
      t.boolean :update_right
      t.boolean :destroy_right
      t.integer :resource_id

      t.timestamps null: false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adeia-0.4.0 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.3.0 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.2.0 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.1.0 db/migrate/20151003144208_create_adeia_permissions.rb