Sha256: ec6f031f61b375815a20dcc92077d0a68de5871bdf3f4158f67d8d4012d26883
Contents?: true
Size: 833 Bytes
Versions: 3
Compression:
Stored size: 833 Bytes
Contents
# == Schema Information # # Table name: wbase_plans # # id :integer not null, primary key # name :string not null # stripe_id :string not null # price :integer not null # interval :string default("monthly") # features :text # highlight :boolean default(FALSE) # display_order :integer default(0) # created_at :datetime not null # updated_at :datetime not null # # Indexes # # index_wbase_plans_on_name (name) # index_wbase_plans_on_stripe_id (stripe_id) # module Wbase class Plan < ActiveRecord::Base has_many :subscriptions def self.monthly where("interval LIKE '%month%'") end def self.annual where("interval LIKE '%yearly%'") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wbase-0.3.1 | app/models/wbase/plan.rb |
wbase-0.3.0 | app/models/wbase/plan.rb |
wbase-0.2.9 | app/models/wbase/plan.rb |