1 changed files with 12 additions and 3 deletions
@ -1,6 +1,15 @@
|
||||
class AllowDecimalStairboughtAndStairowned < ActiveRecord::Migration[7.0] |
||||
def change |
||||
change_column :sales_logs, :stairbought, :decimal |
||||
change_column :sales_logs, :stairowned, :decimal |
||||
def up |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.change :stairbought, :decimal |
||||
t.change :stairowned, :decimal |
||||
end |
||||
end |
||||
|
||||
def down |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.change :stairbought, :integer |
||||
t.change :stairowned, :integer |
||||
end |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue