Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Activity: Add days attribute.
Browse files Browse the repository at this point in the history
References #52.
  • Loading branch information
ybakos committed Sep 8, 2020
1 parent 9993f03 commit 69f68b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20200908064831_add_days_to_activity.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddDaysToActivity < ActiveRecord::Migration[5.2]
def change
add_column :activities, :days, :string
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2020_09_04_071039) do
ActiveRecord::Schema.define(version: 2020_09_08_064831) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -53,6 +53,7 @@
t.time "start_time"
t.date "end_date"
t.time "end_time"
t.string "days"
t.index ["author_id"], name: "index_activities_on_author_id"
end

Expand Down
1 change: 1 addition & 0 deletions spec/models/activity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
specify { expect(activity).to respond_to(:end_date) }
specify { expect(activity).to respond_to(:start_time) }
specify { expect(activity).to respond_to(:end_time) }
specify { expect(activity).to respond_to(:days) }
specify { expect(activity).to respond_to(:description) }
specify { expect(activity).to respond_to(:location) }
specify { expect(activity).to respond_to(:contact_name) }
Expand Down

0 comments on commit 69f68b6

Please sign in to comment.