Skip to content

fix seeds organization address assignment#367

Merged
armahillo merged 2 commits into
masterfrom
fix-seeds-organization-address-assignment
Jun 8, 2018
Merged

fix seeds organization address assignment#367
armahillo merged 2 commits into
masterfrom
fix-seeds-organization-address-assignment

Conversation

@mlpinit
Copy link
Copy Markdown
Member

@mlpinit mlpinit commented Jun 8, 2018

Resolves #1

Description

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation update

How Has This Been Tested?

Screenshots

@mlpinit mlpinit requested a review from armahillo June 8, 2018 00:35
Comment thread db/seeds.rb Outdated
pdx_org = Organization.find_or_create_by!(short_name: "pdx_bank") do |organization|
organization.name = "PDX Diaper Bank"
organization.address = "P.O. Box 22613, Portland OR 97269"
# organization.address = "P.O. Box 22613, Portland OR 97269"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can fully remove it. The last migration:

class AddAddressFieldsToOrganization < ActiveRecord::Migration[5.1]
  def change
    add_column :organizations, :street, :string
    add_column :organizations, :city, :string
    add_column :organizations, :state, :string
    add_column :organizations, :zipcode, :string
    remove_column :organizations, :address
  end
end

removed the address column completely

Copy link
Copy Markdown
Collaborator

@awwaiid awwaiid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@armahillo armahillo merged commit f7de25b into master Jun 8, 2018
@armahillo armahillo deleted the fix-seeds-organization-address-assignment branch June 8, 2018 00:52
@armahillo armahillo added the Ruby for Good This Pull Request was created at a Ruby for Good event label May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ruby for Good This Pull Request was created at a Ruby for Good event

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants