mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-30 06:31:16 +00:00
Merge branch 'master' into products-caching
Conflicts: spec/features/admin/variant_overrides_spec.rb
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddEmailAddressToEnterprises < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :enterprises, :email_address, :string
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user