Capistrano部署:迁移

时间:2016-05-18 10:48:37

标签: ruby-on-rails database-migration capistrano3

当我进行封装生产部署时,我没有错误。迁移是成功的,但不在数据库中。

deploy:migrating
      01 $HOME/.rbenv/bin/rbenv exec bundle exec rake db:migrate
      01 == 20160506075320 DeviseCreateUsuarios: migrating ====================…
      01 -- create_table(:usuarios)
      01    -> 0.0038s
      01 -- add_index(:usuarios, :email, {:unique=>true})
      01    -> 0.0008s
      01 -- add_index(:usuarios, :reset_password_token, {:unique=>true})
      01    -> 0.0008s
      01 == 20160506075320 DeviseCreateUsuarios: migrated (0.0054s) ===========…
      01
      01 == 20160511002957 AddColumnUidToUsuarios: migrating ==================…
      01 -- add_column(:usuarios, :provider, :string)
      01    -> 0.0006s
      01 -- add_column(:usuarios, :uid, :string)
      01    -> 0.0003s
      01 == 20160511002957 AddColumnUidToUsuarios: migrated (0.0010s) =========…
      01

my production.rb

set :stage, :production
server 'myserver.com', user: 'deploy', roles: %w{web app db}

0 个答案:

没有答案