mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
13 lines
289 B
Ruby
13 lines
289 B
Ruby
class AddContextTimestamps < ActiveRecord::Migration[5.2]
|
|
|
|
def self.up
|
|
add_column :contexts, :created_at, :timestamp
|
|
add_column :contexts, :updated_at, :timestamp
|
|
end
|
|
|
|
def self.down
|
|
remove_column :contexts, :created_at
|
|
remove_column :contexts, :updated_at
|
|
end
|
|
|
|
end
|