3,765
回編集
差分
→generate
config/envitonments/production.rb
config.assets.compile = true
=== カラム追加 ===
<nowiki>% rails generate migration add_memo_to_schedules memo:text
invoke active_record
create db/migrate/20230311013341_add_memo_to_schedules.rb
% rails db:migrate
== 20230311013341 AddMemoToSchedules: migrating ===============================
-- add_column(:schedules, :memo, :text)
-> 0.0056s
== 20230311013341 AddMemoToSchedules: migrated (0.0057s) ======================</nowiki>
== サーバーへ転送 ==