mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-31 13:15:17 +01:00
add updated_at column to todos table
This timestamp was missing. All other tables with timestamps have update_at. Could use this in statistics
This commit is contained in:
parent
f40c35276f
commit
49f9f33ac0
1 changed files with 8 additions and 0 deletions
8
db/migrate/043_add_updated_at_to_todos.rb
Normal file
8
db/migrate/043_add_updated_at_to_todos.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class AddUpdatedAtToTodos < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :todos, :updated_at, :timestamp
|
||||
end
|
||||
def self.down
|
||||
remove_column :todos, :updated_at
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue