dev_aliyun
cxt 5 years ago
parent 4fd18b50ed
commit 7766f7bfec

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

Loading…
Cancel
Save