Sha256: 5607101c7ed6ec69c2b3e5e508bfd9da4767cd843372ef4146a4714964e53549

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

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: 20
      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

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-5.4.1-x86-mingw32 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-5.4.0-x86-mingw32 test/migrations/decimal/1_give_me_big_numbers.rb
ibm_db-5.3.2-x86-mingw32 test/migrations/decimal/1_give_me_big_numbers.rb