Sha256: 6918c415e4a5e1b8245768183bb33b8e60eb13b1082b81e0ec1b4fdceb266a69

Contents?: true

Size: 507 Bytes

Versions: 8

Compression:

Stored size: 507 Bytes

Contents

class GiveMeBigNumbers < ActiveRecord::Migration::Current
  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

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-5.1.0 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-5.0.5 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-5.0.4 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-5.0.3 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-5.0.2 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-4.0.0-x86-mingw32 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-4.0.0 test/migrations/decimal/1_give_me_big_numbers.rb