Fix Paste model and migration
This commit is contained in:
parent
c22392bcc4
commit
f389161b79
|
@ -19,7 +19,7 @@ class Paste extends Model
|
||||||
return $this->deletion !== null;
|
return $this->deletion !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function delete($reason, $deleted_by)
|
public function soft_delete($reason, $deleted_by)
|
||||||
{
|
{
|
||||||
if($this->isDeleted())
|
if($this->isDeleted())
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ class CreatePastesTable extends Migration
|
||||||
$table->char('id', 6);
|
$table->char('id', 6);
|
||||||
$table->string('language');
|
$table->string('language');
|
||||||
$table->timestamp('created_at');
|
$table->timestamp('created_at');
|
||||||
$table->timestamp('expires_at');
|
$table->timestamp('expires_at')->nullable();
|
||||||
|
|
||||||
$table->primary('id');
|
$table->primary('id');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue