From ccae65f27da133d7908299f55c1f664dc705ecd1 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Mon, 7 Jul 2014 12:39:27 -0400 Subject: [PATCH] added migration --- ...rstname_customerlastname_billingcode_from_campaign.rb | 9 +++++++++ db/schema.rb | 6 +----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 db/migrate/20140707163626_remove_contactphone_customerfirstname_customerlastname_billingcode_from_campaign.rb diff --git a/db/migrate/20140707163626_remove_contactphone_customerfirstname_customerlastname_billingcode_from_campaign.rb b/db/migrate/20140707163626_remove_contactphone_customerfirstname_customerlastname_billingcode_from_campaign.rb new file mode 100644 index 0000000..ce52004 --- /dev/null +++ b/db/migrate/20140707163626_remove_contactphone_customerfirstname_customerlastname_billingcode_from_campaign.rb @@ -0,0 +1,9 @@ +class RemoveContactphoneCustomerfirstnameCustomerlastnameBillingcodeFromCampaign < ActiveRecord::Migration + def change + remove_column :campaigns, :customerfirstname + remove_column :campaigns, :customerlastname + remove_column :campaigns, :contactphone + remove_column :campaigns, :billingcode + + end +end diff --git a/db/schema.rb b/db/schema.rb index f7d7242..2038d74 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20140529180650) do +ActiveRecord::Schema.define(version: 20140707163626) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -37,17 +37,13 @@ ActiveRecord::Schema.define(version: 20140529180650) do create_table "campaigns", force: true do |t| t.integer "clientid" t.string "listingcode" - t.string "billingcode" t.string "advertisername" t.string "address" t.string "city" t.string "state" t.string "zip" t.string "emailaddress" - t.string "customerfirstname" - t.string "customerlastname" t.string "businessphone" - t.string "contactphone" t.string "websiteurl" t.datetime "created_at" t.datetime "updated_at"