エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Laravel5 の Migration で foreignKey を使う - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Laravel5 の Migration で foreignKey を使う - Qiita
/** * Class AddCDTable * * CDを保存するテーブル */ class AddCDTable extends Migration { /** * Run... /** * Class AddCDTable * * CDを保存するテーブル */ class AddCDTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { \Schema::create( 'cds', function (Blueprint $table){ $table->increments( 'id' ); $table->unsignedInteger( 'user_id' )->comment = '所有ユーザデータID'; $table->string( 'name' )->comment = 'CD名'; $table->text('url')->comment = 'AmazonとかのURL'; $table->timestamps(

