dev_aliyun
cxt 5 years ago
parent d5513dff4f
commit be80081623

@ -1,10 +0,0 @@
class AddIpForUserActions < ActiveRecord::Migration
def up
# add_column :user_actions, :ip, :string
#
# UserAgent.where("agent_type is null").update_all(:agent_type => 1)
end
def down
end
end

@ -0,0 +1,10 @@
class AddIpForUserActions < ActiveRecord::Migration
def up
add_column :user_actions, :ip, :string
UserAgent.where("agent_type is null").update_all(:agent_type => 1)
end
def down
end
end
Loading…
Cancel
Save