diff --git a/shit-show/app/Http/Controllers/ShitController.php b/shit-show/app/Http/Controllers/ShitController.php new file mode 100644 index 0000000..b0d77de --- /dev/null +++ b/shit-show/app/Http/Controllers/ShitController.php @@ -0,0 +1,14 @@ +id(); + $table->integer('user_id')->unsigned(); + $table->index('user_id'); + $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); + + $table->string('description'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + $table->dropForeign('lists_user_id_foreign'); + $table->dropIndex('lists_user_id_index'); + $table->dropColumn('user_id'); + $table->dropTable('shituser'); + } +}