diff --git a/app/TwitchWebhook.php b/app/TwitchWebhook.php index 0c42b0a..cf6b17b 100644 --- a/app/TwitchWebhook.php +++ b/app/TwitchWebhook.php @@ -28,13 +28,6 @@ class TwitchWebhook extends Model return $this->belongsTo("App\User"); } - /** - * Get webhook action - */ - public function webhookActions() { - return $this->hasMany("App\WebhookAction", "webhook_id"); - } - // event handlers /** diff --git a/app/WebhookAction.php b/app/WebhookAction.php deleted file mode 100644 index aca8de1..0000000 --- a/app/WebhookAction.php +++ /dev/null @@ -1,25 +0,0 @@ -belongsTo("App\TwitchWebhook", "webhook_id"); - } -} diff --git a/database/migrations/2020_04_22_161039_create_webhook_actions_table.php b/database/migrations/2020_04_22_161039_create_webhook_actions_table.php deleted file mode 100644 index aaab85b..0000000 --- a/database/migrations/2020_04_22_161039_create_webhook_actions_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->foreignId("webhook_id")->references("id")->on("twitch_webhooks")->onUpdate("cascade")->onDelete("cascade"); - $table->string("discord_hook_url"); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('webhook_actions'); - } -}