Sha256: 5a10858dd9a6c132887a9f715739a272a5010f9c45a58c4b9d61a6dbc37fbd10

Contents?: true

Size: 198 Bytes

Versions: 6

Compression:

Stored size: 198 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

6 entries across 6 versions & 1 rubygems

Version Path
migrant-1.2.5 lib/dsl/data_types/semantic.rb
migrant-1.2.2 lib/dsl/data_types/semantic.rb
migrant-1.2.1 lib/dsl/data_types/semantic.rb
migrant-1.2.0 lib/dsl/data_types/semantic.rb
migrant-1.1.2 lib/dsl/data_types/semantic.rb
migrant-1.1.1 lib/datatype/currency.rb