Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add column 2 org profiles #289

Merged
merged 17 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/models/organization_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Table name: organization_profiles
#
# id :bigint not null, primary key
# about_us :string
# email :string
# phone_number :string
# created_at :datetime not null
Expand Down
1 change: 1 addition & 0 deletions app/models/staff_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Table name: staff_accounts
#
# id :bigint not null, primary key
# deactivated_at :datetime
# verified :boolean default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddAboutUs2OrganizationProfiles < ActiveRecord::Migration[7.0]
def change
add_column :organization_profiles, :about_us, :string
end
end
3 changes: 2 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion db/seeds/01_alta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
organization = Organization.create!(
name: "Alta Pet Rescue",
slug: "alta",
profile: OrganizationProfile.new(email: "[email protected]", phone_number: "123 456 7890", location: orga_location)
profile: OrganizationProfile.new(email: "[email protected]", phone_number: "123 456 7890", location: orga_location, about_us: "We get pets into loving homes!")
)

ActsAsTenant.with_tenant(organization) do
Expand Down
2 changes: 1 addition & 1 deletion db/seeds/02_baja.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
organization = Organization.create!(
name: "Baja",
slug: "baja",
profile: OrganizationProfile.new(email: "[email protected]", phone_number: "123 456 7891", location: orga_location)
profile: OrganizationProfile.new(email: "[email protected]", phone_number: "123 456 7891", location: orga_location, about_us: "We help pets find their forever homes!")
)
ActsAsTenant.with_tenant(organization) do
@user_staff_one = User.create!(
Expand Down
2 changes: 1 addition & 1 deletion test/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
factory :organization_profile do
email { Faker::Internet.email }
phone_number { Faker::PhoneNumber.phone_number }

about_us { Faker::Lorem.paragraph(sentence_count: 4) }
location

trait :with_organization do
Expand Down