mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
make group contact fields not null
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
class AddWebConactToEnterpriseGroups < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :enterprise_groups, :email, :string
|
||||
add_column :enterprise_groups, :website, :string
|
||||
add_column :enterprise_groups, :facebook, :string
|
||||
add_column :enterprise_groups, :instagram, :string
|
||||
add_column :enterprise_groups, :linkedin, :string
|
||||
add_column :enterprise_groups, :twitter, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
class AddWebContactToEnterpriseGroups < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :enterprise_groups, :email, :string, null: false, default: ''
|
||||
add_column :enterprise_groups, :website, :string, null: false, default: ''
|
||||
add_column :enterprise_groups, :facebook, :string, null: false, default: ''
|
||||
add_column :enterprise_groups, :instagram, :string, null: false, default: ''
|
||||
add_column :enterprise_groups, :linkedin, :string, null: false, default: ''
|
||||
add_column :enterprise_groups, :twitter, :string, null: false, default: ''
|
||||
end
|
||||
end
|
||||
12
db/schema.rb
12
db/schema.rb
@@ -198,12 +198,12 @@ ActiveRecord::Schema.define(:version => 20150202000203) do
|
||||
t.integer "logo_file_size"
|
||||
t.datetime "logo_updated_at"
|
||||
t.integer "address_id"
|
||||
t.string "email"
|
||||
t.string "website"
|
||||
t.string "facebook"
|
||||
t.string "instagram"
|
||||
t.string "linkedin"
|
||||
t.string "twitter"
|
||||
t.string "email", :default => "", :null => false
|
||||
t.string "website", :default => "", :null => false
|
||||
t.string "facebook", :default => "", :null => false
|
||||
t.string "instagram", :default => "", :null => false
|
||||
t.string "linkedin", :default => "", :null => false
|
||||
t.string "twitter", :default => "", :null => false
|
||||
t.integer "owner_id"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user