Sha256: 9b0850cd9c0c24b9a2c8a33292b43acd49f4e621fc67a5d54ed1fc7bbdb97c7b

Contents?: true

Size: 207 Bytes

Versions: 11

Compression:

Stored size: 207 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
migrant-2.0.0 lib/dsl/data_types/semantic.rb
migrant-2.0.0.pre lib/dsl/data_types/semantic.rb
migrant-1.5.0 lib/dsl/data_types/semantic.rb
migrant-1.4.3 lib/dsl/data_types/semantic.rb
migrant-1.4.1 lib/dsl/data_types/semantic.rb
migrant-1.4.0 lib/dsl/data_types/semantic.rb
migrant-1.3.2 lib/dsl/data_types/semantic.rb
migrant-1.3.1 lib/dsl/data_types/semantic.rb
migrant-1.3.0 lib/dsl/data_types/semantic.rb
migrant-1.2.8 lib/dsl/data_types/semantic.rb
migrant-1.2.7 lib/dsl/data_types/semantic.rb