get rid of commented out code
[dbsrgits/DBIx-Class-Journal.git] / lib / DBIx / Class / Schema / Journal / DB / ChangeSet.pm
index a5c3928..688949a 100644 (file)
@@ -20,7 +20,6 @@ __PACKAGE__->add_columns(
                          set_date => {
                              data_type => 'timestamp',
                              is_nullable => 0,
-                             default_value => 'NOW()',
                          },
                          session_id => {
                              data_type => 'varchar',
@@ -29,6 +28,12 @@ __PACKAGE__->add_columns(
                          },
                          );
 
+sub new {
+    my $self = shift->next::method(@_);
+    $self->set_date(gmtime);
+    return $self;
+}
+
 __PACKAGE__->set_primary_key('ID');
 
 1;