Skip to content

Commit

Permalink
Adding AuditMixin everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Aug 6, 2015
1 parent db56e84 commit 055d760
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_table(self, table_name):
autoload_with=self.get_sqla_engine())


class Table(Model, Queryable):
class Table(Model, Queryable, AuditMixin):
__tablename__ = 'tables'
id = Column(Integer, primary_key=True)
table_name = Column(String(256), unique=True)
Expand Down Expand Up @@ -180,7 +180,7 @@ def fetch_metadata(self):
db.session.commit()


class SqlMetric(Model):
class SqlMetric(Model, AuditMixin):
__tablename__ = 'sql_metrics'
id = Column(Integer, primary_key=True)
metric_name = Column(String(512))
Expand Down Expand Up @@ -427,7 +427,7 @@ def query(
return df


class Metric(Model):
class Metric(Model, AuditMixin):
__tablename__ = 'metrics'
id = Column(Integer, primary_key=True)
metric_name = Column(String(512))
Expand Down

0 comments on commit 055d760

Please sign in to comment.