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