5 changed files with 16 additions and 16 deletions
@ -1,6 +1,6 @@
|
||||
class AddNameToLocations < ActiveRecord::Migration[7.0] |
||||
def change |
||||
add_column :locations, :name, :string |
||||
add_column :locations, :total_units, :integer |
||||
change_table :locations, :bulk => true do |t| |
||||
t.string :name |
||||
t.integer :total_units |
||||
end |
||||
end |
||||
|
@ -1,6 +1,6 @@
|
||||
class ChangeLocationTypeOfUnit < ActiveRecord::Migration[7.0] |
||||
def change |
||||
remove_column :locations, :type_of_unit |
||||
add_column :locations, :type_of_unit, :integer |
||||
change_table :locations, :bulk => true do |t| |
||||
t.remove :type_of_unit |
||||
t.integer :type_of_unit |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue