1 changed files with 12 additions and 3 deletions
@ -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…
Reference in new issue