質問編集履歴

1

signing_upのマイグレーションファイルのソースコードを追記

2022/08/30 14:14

投稿

Suzuki_Kameo
Suzuki_Kameo

スコア10

test CHANGED
File without changes
test CHANGED
@@ -216,6 +216,44 @@
216
216
  }
217
217
  }
218
218
  ```
219
+
220
+ ```2022_08_26_111804_create_signing_up_table.php
221
+ <?php
222
+
223
+ use Illuminate\Database\Migrations\Migration;
224
+ use Illuminate\Database\Schema\Blueprint;
225
+ use Illuminate\Support\Facades\Schema;
226
+
227
+ class CreateSigningupTable extends Migration
228
+ {
229
+ /**
230
+ * Run the migrations.
231
+ *
232
+ * @return void
233
+ */
234
+ public function up()
235
+ {
236
+ Schema::create('signing_up', function (Blueprint $table) {
237
+ $table->bigIncrements('id');
238
+ $table->integer('users_id');
239
+ $table->text('content');
240
+ $table->integer('status_id')->default(1);
241
+ $table->timestamps();
242
+ });
243
+ }
244
+
245
+ /**
246
+ * Reverse the migrations.
247
+ *
248
+ * @return void
249
+ */
250
+ public function down()
251
+ {
252
+ Schema::dropIfExists('application');
253
+ }
254
+ }
255
+
256
+ ```
219
257
  ### 補足情報(FWのバージョン)
220
258
  Laravel Framework 6.20.31
221
259