aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
blob: b892f50e41d1788db2c7f81f621b550c4bb5e4c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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: 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