Skip to content

Commit 8367cf2

Browse files
committed
Change type for column 'rate' in players model to Float.
1 parent ce8b4d3 commit 8367cf2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class ChangeRateTypeToFloat < ActiveRecord::Migration
2+
def self.up
3+
change_column :players, :rate, :float
4+
end
5+
6+
def self.down
7+
change_column :players, :rate, :integer
8+
end
9+
end

0 commit comments

Comments
 (0)