2015-02-06 72 views
0

我新的軌道已經具備遷移項目文件,即使耙:DB:遷移不起作用Postgres的表沒有創造甚至遷移文件存在

$ rake db:migrate:status 
/Users/frescoadmin/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777 
Starting up a new ElasticSearch client with 

database: roorah_development 

    Status Migration ID Migration Name 
-------------------------------------------------- 
up  20140822150851 Create users 
up  20140822150950 Add devise to users 
up  20140825181927 Add role to users 
up  20140827184709 Add active and agree to tos to users 
up  20140827192137 Create owners 
up  20140827213949 Create renters 
up  20140828003517 Create work histories 
up  20140828180541 Add work history id to renters 
up  20140828220343 Add bio and tagline to owners 
up  20140828222402 Add active and bio and tagline to renters 
up  20140828225430 Change active column name to owners 
up  20140828230511 Create coapplicants 
up  20140829172647 Add work history id to coapplicants 
up  20140829174553 Add coapplicant id to renters 
up  20140829175505 Remove renter id in coapplicants 
up  20140829181221 Create rental histories 

下面我們就來了解,移民文件存在,但是當我給耙分貝:遷移它顯示空白沒有創造

FrescoMac002:Roorah frescoadmin$ rake db:migrate 
/Users/frescoadmin/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777 
Starting up a new ElasticSearch client with 
FrescoMac002:Roorah frescoadmin$ 
在我的數據庫沒有

創建,即使我想單獨遷移文件也是這樣

rake db:migrate:up VERSION="20140822150851" 

請幫我從這個

回答

0

你與

rake db:drop 

&然後

rake db:create 
rake db:migrate 
嘗試