diff --git a/database/migrations/2018_09_07_090452_create_account_classes_table.php b/database/migrations/2018_09_07_090452_create_account_classes_table.php index 0af1024..383f9f1 100644 --- a/database/migrations/2018_09_07_090452_create_account_classes_table.php +++ b/database/migrations/2018_09_07_090452_create_account_classes_table.php @@ -28,8 +28,8 @@ class CreateAccountClassesTable extends Migration ->onDelete('no action'); // The scope of the account class. - $table->integer('scope')->unsigned(); - $table->foreign('scope')->references('id')->on('scopes') + $table->integer('scope_id')->unsigned(); + $table->foreign('scope_id')->references('id')->on('scopes') ->onDelete('no action'); $table->timestamps();