Sha256: 426003625d2043f8aeaa185030ddbb69b642fd34ca9b56c990a3b4dc4c5cccd9

Contents?: true

Size: 498 Bytes

Versions: 214

Compression:

Stored size: 498 Bytes

Contents

class GiveMeBigNumbers < ActiveRecord::Migration
  def self.up
    create_table :big_numbers do |table|
      table.column :bank_balance, :decimal, :precision => 10, :scale => 2
      table.column :big_bank_balance, :decimal, :precision => 15, :scale => 2
      table.column :world_population, :decimal, :precision => 10
      table.column :my_house_population, :decimal, :precision => 2
      table.column :value_of_e, :decimal
    end
  end

  def self.down
    drop_table :big_numbers
  end
end

Version data entries

214 entries across 211 versions & 29 rubygems

Version Path
activerecord-2.3.8 test/migrations/decimal/1_give_me_big_numbers.rb
activerecord-2.3.8.pre1 test/migrations/decimal/1_give_me_big_numbers.rb
activerecord-2.3.7 test/migrations/decimal/1_give_me_big_numbers.rb
activerecord-2.3.6 test/migrations/decimal/1_give_me_big_numbers.rb
radiant-0.8.2 vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
radiant-0.9.0.rc2 vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
webroar-0.3.1 src/admin_panel/vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
webroar-0.3.0 src/admin_panel/vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.3.3/test/migrations/decimal/1_give_me_big_numbers.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.2.2/test/migrations/decimal/1_give_me_big_numbers.rb
simply_stated-0.0.5 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/decimal/1_give_me_big_numbers.rb
simply_stated-0.0.4 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/decimal/1_give_me_big_numbers.rb
factorylabs-castronaut-0.7.5 vendor/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
ginst-2009.12.8 vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
activerecord-2.3.5 test/migrations/decimal/1_give_me_big_numbers.rb
ginst-2009.11.24 vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
ginst-2009.11.23 vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
ginst-2.0.1 vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb