Sha256: 1dea58c4e72059d54798c162c4dfec233204913d363e1a3a7ab871bdccfd49ca

Contents?: true

Size: 236 Bytes

Versions: 2

Compression:

Stored size: 236 Bytes

Contents

class Post < ActiveRecord::Base
end

class Appointment < ActiveRecord::Base
  by_star_field scope: ->{ where(day_of_month: 1) }
end

class Event < ActiveRecord::Base
  by_star_field :start_time, :end_time, offset: 3.hours
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
by_star-2.2.1 spec/fixtures/active_record/models.rb
by_star-2.2.0 spec/fixtures/active_record/models.rb