adding acolumn of timestamp to a table rails code example
Example: how do I add timestamps to a table
class AddTimestampsToUser < ActiveRecord::Migration
def change_table
add_column :users, :created_at, :datetime, null: false
add_column :users, :updated_at, :datetime, null: false
end
end