From d080aa49d56f4cf3e946e4a2e3821fc13580aefd Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 10 Oct 2012 11:50:04 +1100 Subject: [PATCH] Add long description field to distributors and suppliers --- ...00_add_long_description_to_distributors_and_suppliers.rb | 6 ++++++ db/schema.rb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20121010004400_add_long_description_to_distributors_and_suppliers.rb diff --git a/db/migrate/20121010004400_add_long_description_to_distributors_and_suppliers.rb b/db/migrate/20121010004400_add_long_description_to_distributors_and_suppliers.rb new file mode 100644 index 0000000000..7b3e2aa9f1 --- /dev/null +++ b/db/migrate/20121010004400_add_long_description_to_distributors_and_suppliers.rb @@ -0,0 +1,6 @@ +class AddLongDescriptionToDistributorsAndSuppliers < ActiveRecord::Migration + def change + add_column :distributors, :long_description, :text + add_column :suppliers, :long_description, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 419c2ce1b3..c632843072 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 => 20121009232513) do +ActiveRecord::Schema.define(:version => 20121010004400) do create_table "cms_blocks", :force => true do |t| t.integer "page_id", :null => false @@ -144,6 +144,7 @@ ActiveRecord::Schema.define(:version => 20121009232513) do t.datetime "updated_at" t.integer "pickup_address_id" t.string "next_collection_at" + t.text "long_description" end create_table "product_distributions", :force => true do |t| @@ -780,6 +781,7 @@ ActiveRecord::Schema.define(:version => 20121009232513) do t.datetime "created_at" t.datetime "updated_at" t.integer "address_id" + t.text "long_description" end end