From 39c611945b6355904d8c9ece3cee9b861d0145d9 Mon Sep 17 00:00:00 2001 From: Zizaco Date: Tue, 5 Aug 2014 00:28:39 -0300 Subject: [PATCH] Revert "Changed the migration template." --- src/views/generators/migration.blade.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/generators/migration.blade.php b/src/views/generators/migration.blade.php index 791fd133..d56d79ff 100644 --- a/src/views/generators/migration.blade.php +++ b/src/views/generators/migration.blade.php @@ -19,8 +19,8 @@ public function up() $table->timestamps(); }); - // Creates the user_roles (Many-to-Many relation) table - Schema::create('user_roles', function ($table) { + // Creates the assigned_roles (Many-to-Many relation) table + Schema::create('assigned_roles', function ($table) { $table->increments('id')->unsigned(); $table->integer('user_id')->unsigned(); $table->integer('role_id')->unsigned(); @@ -54,9 +54,9 @@ public function up() */ public function down() { - Schema::table('user_roles', function (Blueprint $table) { - $table->dropForeign('user_roles_user_id_foreign'); - $table->dropForeign('user_roles_role_id_foreign'); + Schema::table('assigned_roles', function (Blueprint $table) { + $table->dropForeign('assigned_roles_user_id_foreign'); + $table->dropForeign('assigned_roles_role_id_foreign'); }); Schema::table('permission_role', function (Blueprint $table) { @@ -64,7 +64,7 @@ public function down() $table->dropForeign('permission_role_role_id_foreign'); }); - Schema::drop('user_roles'); + Schema::drop('assigned_roles'); Schema::drop('permission_role'); Schema::drop('roles'); Schema::drop('permissions');