Problem
We have new time stamps added due to github integration, paired with helper fields indicating the origin of the change
field :created_at, :utc_datetime
field :created_from, :string, default: "code_corps"
field :modified_at, :utc_datetime
field :modified_from, :string, default: "code_corps"
- All fields where
created_at is nil should be set to the value of inserted_at
- All fields where
created_from is nil should be set to code_corps
- All fields where
modified_at is nil should be set to the value of updated_at (or is it edited_at?)
- All fields where
modified_from is nil should be set to code_corps
The same migration should be applied to comments as well, since they have the same field
Problem
We have new time stamps added due to github integration, paired with helper fields indicating the origin of the change
created_atis nil should be set to the value ofinserted_atcreated_fromis nil should be set tocode_corpsmodified_atis nil should be set to the value ofupdated_at(or is itedited_at?)modified_fromis nil should be set tocode_corpsThe same migration should be applied to comments as well, since they have the same field