aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/migrations/decimal/1_give_me_big_numbers.rb')
-rw-r--r--activerecord/test/migrations/decimal/1_give_me_big_numbers.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb b/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
new file mode 100644
index 0000000000..0aed7cbd84
--- /dev/null
+++ b/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
@@ -0,0 +1,15 @@
+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