Sha256: fa43db511c9f48334c2ed03989463eed1bcc9ed3edc78f286d68b1aecefb47c7

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

class Post < ActiveRecord::Base
end

class Appointment < ActiveRecord::Base
  by_star_field index_scope: ->(start){ start - 5.days }
end

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

  default_scope ->{ order('day_of_month ASC') }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
by_star-4.0.1 spec/fixtures/active_record/models.rb