You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i get:
ActiveRecord::StatementInvalid: PG::GroupingError: ERROR: column "schedules.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT "schedules".* FROM "schedules" GROUP BY "schedules"."...
^
: SELECT "schedules".* FROM "schedules" GROUP BY "schedules"."schedulable_type"
/Users/thomas/.rbenv/versions/2.2.3/bin/bundle:22:in load' /Users/thomas/.rbenv/versions/2.2.3/bin/bundle:22:in
'
PG::GroupingError: ERROR: column "schedules.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT "schedules".* FROM "schedules" GROUP BY "schedules"."...
When running:
rake schedulable:build_occurrences
i get:
'ActiveRecord::StatementInvalid: PG::GroupingError: ERROR: column "schedules.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT "schedules".* FROM "schedules" GROUP BY "schedules"."...
^
: SELECT "schedules".* FROM "schedules" GROUP BY "schedules"."schedulable_type"
/Users/thomas/.rbenv/versions/2.2.3/bin/bundle:22:in
load' /Users/thomas/.rbenv/versions/2.2.3/bin/bundle:22:in
PG::GroupingError: ERROR: column "schedules.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT "schedules".* FROM "schedules" GROUP BY "schedules"."...
Event model:
class Event < ActiveRecord::Base
SCHEDULABLE
acts_as_schedulable :schedule, occurrences: :event_occurrences
has_many :bookings, as: :bookable
end
The text was updated successfully, but these errors were encountered: