From 007de178d87dd462365e4f69b1e415bec8cd9853 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 13 Oct 2015 16:33:34 -0700 Subject: [PATCH] Drop soft delete Fixes #19. --- app/models/characteristic.js | 2 -- app/models/species.js | 2 -- app/models/strain.js | 2 -- app/models/user.js | 1 - app/pods/protected/characteristics/show/template.hbs | 6 +----- app/pods/protected/species/show/template.hbs | 6 +----- app/pods/protected/strains/show/template.hbs | 6 +----- app/pods/protected/users/show/template.hbs | 6 +----- 8 files changed, 4 insertions(+), 27 deletions(-) diff --git a/app/models/characteristic.js b/app/models/characteristic.js index 8851175..766fdbf 100644 --- a/app/models/characteristic.js +++ b/app/models/characteristic.js @@ -7,10 +7,8 @@ export default DS.Model.extend({ measurements : DS.hasMany('measurements', { async: false }), createdAt : DS.attr('date'), updatedAt : DS.attr('date'), - deletedAt : DS.attr('date'), createdBy : DS.attr('number'), updatedBy : DS.attr('number'), - deletedBy : DS.attr('number'), sortOrder : DS.attr('number'), canEdit : DS.attr('boolean'), }); diff --git a/app/models/species.js b/app/models/species.js index c8746bd..bb27451 100644 --- a/app/models/species.js +++ b/app/models/species.js @@ -11,10 +11,8 @@ export default DS.Model.extend({ totalStrains: DS.attr('number'), createdAt : DS.attr('date'), updatedAt : DS.attr('date'), - deletedAt : DS.attr('date'), createdBy : DS.attr('number'), updatedBy : DS.attr('number'), - deletedBy : DS.attr('number'), sortOrder : DS.attr('number'), canEdit : DS.attr('boolean'), diff --git a/app/models/strain.js b/app/models/strain.js index 7bd4e50..72d4ff6 100644 --- a/app/models/strain.js +++ b/app/models/strain.js @@ -14,10 +14,8 @@ export default DS.Model.extend({ notes : DS.attr('string'), createdAt : DS.attr('date'), updatedAt : DS.attr('date'), - deletedAt : DS.attr('date'), createdBy : DS.attr('number'), updatedBy : DS.attr('number'), - deletedBy : DS.attr('number'), totalMeasurements : DS.attr('number'), sortOrder : DS.attr('number'), canEdit : DS.attr('boolean'), diff --git a/app/models/user.js b/app/models/user.js index 680a9f4..57a74fd 100644 --- a/app/models/user.js +++ b/app/models/user.js @@ -8,7 +8,6 @@ export default DS.Model.extend({ canEdit : DS.attr('boolean'), createdAt: DS.attr('date'), updatedAt: DS.attr('date'), - deletedAt: DS.attr('date'), isAdmin: function() { return this.get('role') === 'A'; diff --git a/app/pods/protected/characteristics/show/template.hbs b/app/pods/protected/characteristics/show/template.hbs index 010a8c5..c0206ee 100644 --- a/app/pods/protected/characteristics/show/template.hbs +++ b/app/pods/protected/characteristics/show/template.hbs @@ -33,7 +33,7 @@ {{! ROW 3 }} -
+
Record Created
{{null-time model.createdAt 'LL'}}
@@ -42,10 +42,6 @@
Record Updated
{{null-time model.updatedAt 'LL'}}
-
-
Record Deleted
-
{{null-time model.deletedAt 'LL'}}
-
diff --git a/app/pods/protected/species/show/template.hbs b/app/pods/protected/species/show/template.hbs index 528b969..841a671 100644 --- a/app/pods/protected/species/show/template.hbs +++ b/app/pods/protected/species/show/template.hbs @@ -40,7 +40,7 @@ {{! ROW 3 }} -
+
Record Created
{{null-time model.createdAt 'LL'}}
@@ -49,10 +49,6 @@
Record Updated
{{null-time model.updatedAt 'LL'}}
-
-
Record Deleted
-
{{null-time model.deletedAt 'LL'}}
-
diff --git a/app/pods/protected/strains/show/template.hbs b/app/pods/protected/strains/show/template.hbs index 5260d43..8a10e60 100644 --- a/app/pods/protected/strains/show/template.hbs +++ b/app/pods/protected/strains/show/template.hbs @@ -84,7 +84,7 @@ {{! ROW 6 }} -
+
Record Created
{{null-time model.createdAt 'LL'}}
@@ -93,10 +93,6 @@
Record Updated
{{null-time model.updatedAt 'LL'}}
-
-
Record Deleted
-
{{null-time model.deletedAt 'LL'}}
-
diff --git a/app/pods/protected/users/show/template.hbs b/app/pods/protected/users/show/template.hbs index 9d21912..ca89688 100644 --- a/app/pods/protected/users/show/template.hbs +++ b/app/pods/protected/users/show/template.hbs @@ -21,7 +21,7 @@ {{! ROW 2 }} -
+
Record Created
{{null-time model.createdAt 'LL'}}
@@ -30,10 +30,6 @@
Record Updated
{{null-time model.updatedAt 'LL'}}
-
-
Record Deleted
-
{{null-time model.deletedAt 'LL'}}
-