Module: Counterfeit::Schema

Defined in:
lib/counterfeit/schema.rb

Instance Method Summary collapse

Instance Method Details

#money(name) ⇒ Object



3
4
5
6
# File 'lib/counterfeit/schema.rb', line 3

def money(name)
  column "#{name.to_s}_in_cents", :integer, :default => 0, :null => false
  column "#{name.to_s}_currency", :string,  :limit => 3,   :null => false
end