This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Activity: Remove 'ongoing' attribute.
Users wish to specify activities in terms of start date to end date, and start time and end time. In the case of one-time events, the start and end dates will be the same. There is need to additionally distinguish multi-day/ongoing vs single-day/'one-time' activities. Remove the field. References #49.
- Loading branch information
Showing
7 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class RemoveOngoingFromActivity < ActiveRecord::Migration[5.2] | ||
def change | ||
remove_column :activities, :ongoing | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FactoryBot.define do | ||
factory :activity do | ||
location { 'Bend' } | ||
title { 'Lettuce Taco Bout It FUNdraiser' } | ||
start_date { '01/01/2020' } | ||
end_date { '01/11/2020' } | ||
start_time { '10:00' } | ||
end_time { '12:00' } | ||
location { 'Bend' } | ||
contact_name { 'Howard' } | ||
contact_email { '[email protected]' } | ||
contact_number { '123-456-7890' } | ||
organization_name { 'Taco Tuesday' } | ||
description { "Come support 'Lettuce Taco Bout It' at this FUNdraiser" } | ||
title { 'Lettuce Taco Bout It FUNdraiser' } | ||
end | ||
|
||
factory :invalid_activity, parent: :activity do |activity| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters