Sha256: 72ba5be5741192a45ba3ce106e2cdce030d06ce0ec461c904fb4262ccb265562

Contents?: true

Size: 199 Bytes

Versions: 15

Compression:

Stored size: 199 Bytes

Contents

module DataType
  class Currency < Base
    def column
      {:type => :decimal, :precision => 10, :scale => 2}
    end
    
    def self.default_mock
      rand(9999999).to_f+0.51
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
migrant-1.1.0 lib/datatype/currency.rb
migrant-1.0.2 lib/datatype/currency.rb
migrant-1.0.1 lib/datatype/currency.rb
migrant-1.0.0 lib/datatype/currency.rb
migrant-0.2.4 lib/datatype/currency.rb
migrant-0.2.3 lib/datatype/currency.rb
migrant-0.2.2 lib/datatype/currency.rb
migrant-0.2.1 lib/datatype/currency.rb
migrant-0.2.0 lib/datatype/currency.rb
migrant-0.1.5 lib/datatype/currency.rb
migrant-0.1.4 lib/datatype/currency.rb
migrant-0.1.3 lib/datatype/currency.rb
migrant-0.1.2 lib/datatype/currency.rb
migrant-0.1.1 lib/datatype/currency.rb
migrant-0.1.0 lib/datatype/currency.rb