You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|