#101 マイグレとコントローラ

This commit is contained in:
2025-09-09 23:01:06 +09:00
parent 3119d475e5
commit c9bae764f7
3 changed files with 18 additions and 7 deletions
@@ -0,0 +1,6 @@
class AddOriginalCreatedAtToPosts < ActiveRecord::Migration[8.0]
def change
add_column :posts, :original_created_from, :datetime, after: :created_at
add_column :posts, :original_created_before, :datetime, after: :original_created_from
end
end