Remove tenant_id from parent model

This class already mixes in models_v2.HasTenant so we do not need
to specify this here. The comment above the code seems to be miss leading as
the tenant_id field in the base class is also nullable.

Change-Id: I4725a97b746301fdbe7ed49a76e24d933ba1e71c
This commit is contained in:
Aaron Rosen 2016-06-30 08:16:33 -07:00
parent 84ec8fe9ad
commit f34d632397

View File

@ -241,8 +241,6 @@ class NetworkGateway(model_base.BASEV2, models_v2.HasId,
models_v2.HasTenant):
"""Defines the data model for a network gateway."""
name = sa.Column(sa.String(255))
# Tenant id is nullable for this resource
tenant_id = sa.Column(sa.String(36))
default = sa.Column(sa.Boolean())
devices = orm.relationship(NetworkGatewayDeviceReference,
backref='networkgateways',