2019-04-10から1日間の記事一覧
Zoneモデルを作成し、AreaモデルとZoneモデルを1対多のリレーションを作成します。 Zoneモデルの作成 bin/rails g scaffold Zone name:string description:text Migration File class CreateZones < ActiveRecord::Migration[6.0] def change create_table :…
Zoneモデルを作成し、AreaモデルとZoneモデルを1対多のリレーションを作成します。 Zoneモデルの作成 bin/rails g scaffold Zone name:string description:text Migration File class CreateZones < ActiveRecord::Migration[6.0] def change create_table :…