Sha256: 7ba55e3d0c6ddf81870c782ea9143e9e4b9cea21563973daaac067b2b65a056c

Contents?: true

Size: 466 Bytes

Versions: 12

Compression:

Stored size: 466 Bytes

Contents

class CreateAdeiaPermissions < ActiveRecord::Migration
  def change
    create_table :adeia_permissions do |t|
      t.references :owner, polymorphic: true, index: true
      t.references :adeia_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

12 entries across 12 versions & 1 rubygems

Version Path
adeia-0.7.1 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.7.0 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.6.2 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.6.1 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.6.0 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.5.6 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.5.5 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.5.4 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.5.3 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.5.2 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.5.1 db/migrate/20151003144208_create_adeia_permissions.rb
adeia-0.5.0 db/migrate/20151003144208_create_adeia_permissions.rb