handle add/remove homies in backend
This commit is contained in:
5
db/migrate/20200911162613_add_default_chip_to_homies.rb
Normal file
5
db/migrate/20200911162613_add_default_chip_to_homies.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddDefaultChipToHomies < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_reference :homies, :chip
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class ChangeDefaultValueForImportanceInHomies < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column_default :homies, :importance, 100
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user