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

このコミットが含まれているのは:
2025-09-09 23:01:06 +09:00
コミット c9bae764f7
3個のファイルの変更18行の追加7行の削除
+6
ファイルの表示
@@ -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