From 4d58faefd8eeb6748f1ca943023cde3a33f427f5 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Wed, 1 Jul 2015 12:54:58 +0800 Subject: [PATCH] Adding timestamps to billable periods --- .../20150701034055_add_timestamps_to_billable_periods.rb | 8 ++++++++ db/schema.rb | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 db/migrate/20150701034055_add_timestamps_to_billable_periods.rb diff --git a/db/migrate/20150701034055_add_timestamps_to_billable_periods.rb b/db/migrate/20150701034055_add_timestamps_to_billable_periods.rb new file mode 100644 index 0000000000..6c3ea52356 --- /dev/null +++ b/db/migrate/20150701034055_add_timestamps_to_billable_periods.rb @@ -0,0 +1,8 @@ +class AddTimestampsToBillablePeriods < ActiveRecord::Migration + def change + change_table(:billable_periods) do |t| + t.datetime :deleted_at, default: nil + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index d358a4bc4f..3ef04e995d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -32,6 +32,9 @@ ActiveRecord::Schema.define(:version => 20150730160010) do t.string "sells" t.boolean "trial", :default => false t.decimal "turnover", :default => 0.0 + t.datetime "deleted_at" + t.datetime "created_at" + t.datetime "updated_at" end create_table "carts", :force => true do |t|