Skip to content

Commit

Permalink
Adds more pg_comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gadogado committed Mar 2, 2019
1 parent 717553f commit 032f4dc
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions db/migrate/20190301200609_adds_comments_for_anonymization.rb
Expand Up @@ -24,6 +24,18 @@ def change
# change_table :mail_snippets
# change_table :manufacturers
# change_table :memberships
# change_table :other_listings
# *confirm change_table :paid_features
# change_table :paints
# change_table :propulsion_types
# *confirm change_table :public_images
# change_table :rear_gear_types
# change_table :recovery_displays
# change_table :schema_migrations
# change_table :states
# change_table :recovery_displays
# change_table :tweets
# change_table :wheel_sizes

change_table :bikes do |t|
t.change_comment :name, "anon: lorem_word"
Expand Down Expand Up @@ -118,5 +130,73 @@ def change
t.change_comment :invitee_email, "anon: email"
t.change_comment :invitee_name, "anon: full_name"
end

change_table :organization_messages do |t|
t.change_comment :email, "anon: email"
t.change_comment :body, "anon: lorem_sentence"
t.change_comment :address, "anon: address_line_1"
t.change_comment :latitude, "anon: latitude"
t.change_comment :longitude, "anon: longitude"
end

change_table :organizations do |t|
t.change_comment :slug, "anon: lorem_word"
t.change_comment :name, "anon: company_name"
t.change_comment :short_name, "anon: lorem_word"
t.change_comment :website, "anon: url"
t.change_comment :access_token, "anon: md5"
end

change_table :ownerships do |t|
t.change_comment :owner_email, "anon: email"
end

change_table :payments do |t|
t.change_comment :stripe_id, "anon: md5"
t.change_comment :email, "anon: email"
end

change_table :stolen_notifications do |t|
t.change_comment :message, "anon: lorem_sentence"
t.change_comment :email, "anon: email"
t.change_comment :reference_url, "anon: url"
t.change_comment :receiver_email, "anon: email"
end

change_table :stolen_records do |t|
t.change_comment :latitude, "anon: latitude"
t.change_comment :longitude, "anon: longitude"
t.change_comment :phone, "anon: phone_number"
t.change_comment :secondary_phone, "anon: phone_number"
t.change_comment :street, "anon: address_line_1"
t.change_comment :police_report_number, "anon: ugcid"
end

change_table :user_emails do |t|
t.change_comment :email, "anon: email"
end

change_table :users do |t|
t.change_comment :name, "anon: full_name"
t.change_comment :email, "anon: email"
t.change_comment :password, "anon: password"
t.change_comment :password_digest, "anon: bcrypt_password"
t.change_comment :website, "anon: url"
t.change_comment :twitter, "anon: url"
t.change_comment :username, "anon: lorem_word"
t.change_comment :description, "anon: lorem_sentence"
t.change_comment :title, "anon: lorem_word"
t.change_comment :confirmation_token, "anon: md5"
t.change_comment :auth_token, "anon: md5"
t.change_comment :stripe_id, "anon: md5"
t.change_comment :paid_membership_info, "anon: empty_string"
t.change_comment :my_bikes_hash, "anon: empty_string"
t.change_comment :partner_data, "anon: empty_curly"
t.change_comment :latitude, "anon: latitude"
t.change_comment :longitude, "anon: longitude"
t.change_comment :street, "anon: address_line_1"
t.change_comment :city, "anon: address_city"
t.change_comment :phone, "anon: phone_number"
end
end
end

0 comments on commit 032f4dc

Please sign in to comment.