From 82d33332ab98f6065e0499fead2b7940066d0bea Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Wed, 22 Oct 2014 16:11:51 +1100 Subject: [PATCH] Adding shop_trial_start_date column to enterprises --- ...0141022050659_add_shop_trial_start_date_to_enterprises.rb | 5 +++++ db/schema.rb | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20141022050659_add_shop_trial_start_date_to_enterprises.rb diff --git a/db/migrate/20141022050659_add_shop_trial_start_date_to_enterprises.rb b/db/migrate/20141022050659_add_shop_trial_start_date_to_enterprises.rb new file mode 100644 index 0000000000..c9680f4e40 --- /dev/null +++ b/db/migrate/20141022050659_add_shop_trial_start_date_to_enterprises.rb @@ -0,0 +1,5 @@ +class AddShopTrialStartDateToEnterprises < ActiveRecord::Migration + def change + add_column :enterprises, :shop_trial_start_date, :datetime, default: nil + end +end diff --git a/db/schema.rb b/db/schema.rb index 974dc8ac9b..3c1fb143e4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20141010043405) do +ActiveRecord::Schema.define(:version => 20141022050659) do create_table "adjustment_metadata", :force => true do |t| t.integer "adjustment_id" @@ -264,11 +264,12 @@ ActiveRecord::Schema.define(:version => 20141010043405) do t.string "instagram" t.string "linkedin" t.integer "owner_id", :null => false + t.string "sells", :default => "none", :null => false t.string "confirmation_token" t.datetime "confirmed_at" t.datetime "confirmation_sent_at" t.string "unconfirmed_email" - t.string "sells", :default => "none", :null => false + t.datetime "shop_trial_start_date" end add_index "enterprises", ["address_id"], :name => "index_enterprises_on_address_id"