Merge branch 'develop' of http://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into develop
commit
b09ef90129
@ -1,6 +1,6 @@
|
|||||||
class UserAgent < ActiveRecord::Base
|
class UserAgent < ActiveRecord::Base
|
||||||
|
|
||||||
AD = 1 # 广告宣传的引流
|
USER_AD = 1 # 广告宣传的引流
|
||||||
REGISTER = 2 # 引流注册
|
USER_REGISTER = 2 # 引流注册
|
||||||
COMPETITION = 3 # 引流参加竞赛
|
USER_COMPETITION = 3 # 引流参加竞赛
|
||||||
end
|
end
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
class ModifyTypeForUserAgents < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
rename_column :user_agents, :type, :agent_type
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue