Merge branch 'master' into products-caching

Conflicts:
	spec/features/admin/variant_overrides_spec.rb
This commit is contained in:
Rohan Mitchell
2016-03-18 09:59:56 +11:00
23 changed files with 105 additions and 86 deletions

View File

@@ -0,0 +1,5 @@
class AddEmailAddressToEnterprises < ActiveRecord::Migration
def change
add_column :enterprises, :email_address, :string
end
end

View File

@@ -0,0 +1,8 @@
class SetEnterpriseEmailAddress < ActiveRecord::Migration
def up
Enterprise.all.each do |enterprise|
enterprise.email_address = enterprise.email
enterprise.save
end
end
end

View File

@@ -347,6 +347,7 @@ ActiveRecord::Schema.define(:version => 20160302044850) do
t.boolean "producer_profile_only", :default => false
t.string "permalink", :null => false
t.boolean "charges_sales_tax", :default => false, :null => false
t.string "email_address"
end
add_index "enterprises", ["address_id"], :name => "index_enterprises_on_address_id"