mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 08:10:13 +01:00
14 lines
284 B
Ruby
14 lines
284 B
Ruby
|
|
class AddContextTimestamps < ActiveRecord::Migration
|
||
|
|
|
||
|
|
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
|