class MachinePolicy < ApplicationPolicy
def create?
user.is_admin?
end
def update?
def destroy?
user.is_admin? and record.destroyable?