diff options
Diffstat (limited to 'db/migrate/20170909150936_add_spent_at_to_timelogs.rb')
-rw-r--r-- | db/migrate/20170909150936_add_spent_at_to_timelogs.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20170909150936_add_spent_at_to_timelogs.rb b/db/migrate/20170909150936_add_spent_at_to_timelogs.rb new file mode 100644 index 00000000000..ffff719c289 --- /dev/null +++ b/db/migrate/20170909150936_add_spent_at_to_timelogs.rb @@ -0,0 +1,11 @@ +class AddSpentAtToTimelogs < ActiveRecord::Migration + DOWNTIME = false + + def up + add_column :timelogs, :spent_at, :datetime_with_timezone + end + + def down + remove_column :timelogs, :spent_at + end +end |