ref: master
db/migrate/20170401104432_add_timestamps_to_tags.rb
1 2 3 4 5 6
class AddTimestampsToTags < ActiveRecord::Migration def change add_timestamps :tags execute("UPDATE tags SET created_at = now(), updated_at = now()") end end