FactoryGirl.define do factory :ecloud do applyno "MyString" string "MyString" ecordercode "MyString" opttype 1 trial false bossorderid "MyString" custid 1 custcode "MyString" registersource 1 custtype 1 custname "MyString" userid 1 username "MyString" useralias "MyString" mobile "MyString" productcode "MyString" begintime "MyString" endtime "MyString" end end