Sha256: 03468d7b140b1e69165805e85ec7fb3a4b993060f54703a1d8c91e3310f68924

Contents?: true

Size: 228 Bytes

Versions: 3

Compression:

Stored size: 228 Bytes

Contents

module Counterfeit
  module Schema
    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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
counterfeit-0.0.3 lib/counterfeit/schema.rb
counterfeit-0.0.2 lib/counterfeit/schema.rb
counterfeit-0.0.1 lib/counterfeit/schema.rb