Merge branch 'develop' of https://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into develop
commit
7bcbd997e5
@ -0,0 +1,3 @@
|
||||
class UserAgent < ActiveRecord::Base
|
||||
|
||||
end
|
@ -0,0 +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)
|
||||
end
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
FactoryGirl.define do
|
||||
factory :user_agent do
|
||||
type 1
|
||||
key "MyString"
|
||||
ip "MyString"
|
||||
end
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe UserAgent, :type => :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in new issue