2016-03-05 132 views
1
sahilrd07:~/workspace/sample2 (filling-in-layout) $ heroku run rake db:drop 
Running rake db:drop on limitless-coast-42827... up, run.4760 
rake aborted! 
NameError: uninitialized constant Sass::Script 
/app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>' 
/app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require' 
/app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>' 
/app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require' 
/app/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>' 
/app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require' 
/app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require' 
/app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each' 
/app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require' 
/app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each' 
/app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require' 
/app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require' 
/app/config/application.rb:7:in `<top (required)>' 
/app/Rakefile:4:in `require' 
/app/Rakefile:4:in `<top (required)>' 
(See full trace by running task with --trace) 
+0

的Heroku应用程序没有权限删除和创建数据库。 –

回答

0

您应该输入您的Heroku的服务器并运行该命令有:

$ heroku console 
Ruby console for heroku-project-name 
>> ActiveRecord::Migration.drop_table(:table_name) 
+0

即时通讯使用cloud9 –

0

如上所述here,你也可以从你的Heroku仪表盘掉落分贝。从链接的文章:

现在也可以通过他们的Web界面重置数据库。

转到dashboard.heroku.com选择你的应用程序,然后你会发现在加载项类别下的数据库,点击它,然后你可以重置数据库。

enter image description here

相关问题