parent
bc3291d00b
commit
0b1049e319
@ -1,5 +1,6 @@
|
|||||||
class ModifyQuotesForGtopicBanks < ActiveRecord::Migration[5.2]
|
class ModifyQuotesForGtopicBanks < ActiveRecord::Migration[5.2]
|
||||||
def change
|
def change
|
||||||
|
GtopicBank.where("quotes is null").update_all(:quotes => 0)
|
||||||
change_column :gtopic_banks, :quotes, :integer, :default => 0
|
change_column :gtopic_banks, :quotes, :integer, :default => 0
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in new issue