Created
April 30, 2019 06:14
-
-
Save NaiyaShah-BTC/748f97d0d31be90715ad836d370e3e32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Feed < ActiveRecord::Base | |
enum status: %i[ active pending trashed ] | |
end | |
Feed.not_active # => where.not(status: :active) | |
Feed.not_pending # => where.not(status: :pending) | |
Feed.not_trashed # => where.not(status: :trashed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment