dev_aliyun
cxt 6 years ago
parent 4fd18b50ed
commit 7766f7bfec

@ -1,12 +1,12 @@
class CreateUserAgents < ActiveRecord::Migration class CreateUserAgents < ActiveRecord::Migration
def change def change
create_table :user_agents do |t| # create_table :user_agents do |t|
t.string :type # t.string :type
t.string :key # t.string :key
t.string :ip # t.string :ip
#
t.timestamps # t.timestamps
end # end
add_index(:user_agents, :ip, :unique => true) # add_index(:user_agents, :ip, :unique => true)
end end
end end

Loading…
Cancel
Save