Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

Commit

Permalink
ALlow citylife card type
Browse files Browse the repository at this point in the history
  • Loading branch information
VandorpeDavid committed Aug 28, 2016
1 parent a97c6da commit 3311e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Card < ActiveRecord::Base
# Validation rules
validates :academic_year, :presence => true, :uniqueness => { :scope => :member_id }
validates :number, :presence => true, :uniqueness => { :scope => :academic_year }
validates :card_type, :presence => true, :inclusion => { :in => %w(fk isic) }
validates :card_type, :presence => true, :inclusion => { :in => %w(fk isic citylife) }
validates :status, :inclusion => { :in => %w(unpaid paid) }
validates :isic_status, :inclusion => { :in => %w(none request requested printed) }

Expand Down

0 comments on commit 3311e0a

Please sign in to comment.