dev_local
parent
ac193b5603
commit
5c826a8e54
@ -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