Merge branch 'dev_local' of https://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into dev_local
commit
8db3062fc3
@ -0,0 +1,12 @@
|
||||
class AddLocalStatusToShixuns < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :shixuns, :local_status, :integer, :limit => 1
|
||||
Shixun.find_each do |shixun|
|
||||
begin
|
||||
shixun.local_status = shixun.status.to_i
|
||||
shixun.save!
|
||||
rescue Exception => e
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue