14 lines
289 B
14 lines
289 B
2 years ago
|
class ChangeMortgageToFloat < ActiveRecord::Migration[7.0]
|
||
|
def self.up
|
||
|
change_table :sales_logs do |t|
|
||
|
t.change :mortgage, :decimal, precision: 10, scale: 2
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
change_table :sales_logs do |t|
|
||
|
t.change :mortgage, :integer
|
||
|
end
|
||
|
end
|
||
|
end
|