Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 21st, 2018
57
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
class Game < ActiveRecord::Base
belongs_to :team
scope :future, lambda { where("starts_at > ?", Time.zone.now ) }
scope :past, lambda { where("starts_at < ?", Time.zone.now ) }
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Fancy Barcodes
Python | 31 min ago | 0.41 KB
TestProcessor
Java | 45 min ago | 1.95 KB
Untitled
C++ | 56 min ago | 0.46 KB
installer_1-18.lua
Lua | 1 hour ago | 0.87 KB
Phantom types or Typestate pattern in Rust
Rust | 1 hour ago | 3.29 KB
programm5
Lua | 1 hour ago | 0.22 KB
SQL - Introduction to Aggregation and Subquer...
PostgreSQL | 2 hours ago | 3.04 KB
snowybot python
JavaScript | 2 hours ago | 2.97 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!