Sha256: b0159ca8a0f8567eb8a80e365fbce273a9781490da549c6d5d39edbc97a1a79e

Contents?: true

Size: 365 Bytes

Versions: 7

Compression:

Stored size: 365 Bytes

Contents

class CreateUserPermissions < ActiveRecord::Migration
  def change
    create_table :userpermissions do |t|
      t.boolean :admin, null: false, default: false
      t.boolean :write, null: false, default: false
      t.boolean :read, null: false, default: false

      t.belongs_to :user, index: true
      t.belongs_to :organization, index:true
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cyclid-0.4.0 db/migrate/20160214105837_create_user_permissions.rb
cyclid-0.3.3 db/migrate/20160214105837_create_user_permissions.rb
cyclid-0.3.2 db/migrate/20160214105837_create_user_permissions.rb
cyclid-0.3.1 db/migrate/20160214105837_create_user_permissions.rb
cyclid-0.3.0 db/migrate/20160214105837_create_user_permissions.rb
cyclid-0.2.5 db/migrate/20160214105837_create_user_permissions.rb
cyclid-0.2.4 db/migrate/20160214105837_create_user_permissions.rb