Emi Matchu
fe67211fdf
This has just been absent for too long! We've lost a lot of data about when poses were first modeled, which is a shame. But I want this in now, because I was just doing caching on /rainbow-pool.json, and realized that _labeling_ poses is another way pet states can update rather than just being created! So we need an `updated_at` field, to be able to quickly detect edits that require us to invalidate the cache on `PetState.all_supported_poses`. I'll do that next!
5 lines
128 B
Ruby
5 lines
128 B
Ruby
class AddTimestampsToPetStates < ActiveRecord::Migration[7.2]
|
|
def change
|
|
add_timestamps :pet_states, null: true
|
|
end
|
|
end
|