Browse Source

Fix lint for migration

pull/2746/head
Rachael Booth 8 months ago
parent
commit
ea9bc3a624
  1. 15
      db/migrate/20241031102744_allow_decimal_stairbought_and_stairowned.rb

15
db/migrate/20241031102744_allow_decimal_stairbought_and_stairowned.rb

@ -1,6 +1,15 @@
class AllowDecimalStairboughtAndStairowned < ActiveRecord::Migration[7.0] class AllowDecimalStairboughtAndStairowned < ActiveRecord::Migration[7.0]
def change def up
change_column :sales_logs, :stairbought, :decimal change_table :sales_logs, bulk: true do |t|
change_column :sales_logs, :stairowned, :decimal 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
end end

Loading…
Cancel
Save