Browse Source

Fix Paste model and migration

master
Les De Ridder 3 years ago
parent
commit
f389161b79
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/Paste.php
  2. 1
    1
      database/migrations/2016_05_27_230057_create_pastes_table.php

+ 1
- 1
app/Paste.php View File

@@ -19,7 +19,7 @@ class Paste extends Model
19 19
 		return $this->deletion !== null;
20 20
 	}
21 21
 
22
-	public function delete($reason, $deleted_by)
22
+	public function soft_delete($reason, $deleted_by)
23 23
 	{
24 24
 		if($this->isDeleted())
25 25
 		{

+ 1
- 1
database/migrations/2016_05_27_230057_create_pastes_table.php View File

@@ -16,7 +16,7 @@ class CreatePastesTable extends Migration
16 16
 			$table->char('id', 6);
17 17
 			$table->string('language');
18 18
 			$table->timestamp('created_at');
19
-			$table->timestamp('expires_at');
19
+			$table->timestamp('expires_at')->nullable();
20 20
 
21 21
 			$table->primary('id');
22 22
         });

Loading…
Cancel
Save