heroku pg:reset DATABASE_URL
Type exactly as is the above command in your shell, you will be asked for confirm your app database name, type it and voilà.
Now, is good you remigrate your new database, right?
heroku run rake db:migrate db:seed
heroku pg:reset DATABASE_URL
Type exactly as is the above command in your shell, you will be asked for confirm your app database name, type it and voilà.
Now, is good you remigrate your new database, right?
heroku run rake db:migrate db:seed
Você tava baixando aquele arquivo a horas no wget e a internet cai. E agora, Juvenal?
Primeiro, na hora de baixar seu comando foi mais ou menos esse:
$ wget http://s007.fileom.com:182/d/yalitlbvmwpxj4w7ma2iot6vc26cawbolw4k75f7qjglyyyen3qcou4t/BreakingBad.505.rmvb
Dai, para poder resumir o download você passa a flag -c
$ wget -c http://s007.fileom.com:182/d/yalitlbvmwpxj4w7ma2iot6vc26cawbolw4k75f7qjglyyyen3qcou4t/BreakingBad.505.rmvb
Talvez você se atrasou um pouco ou esqueceu o que foi trazido de novo pelo Ruby 2.0. Então aqui dois belisquinhos do que veio de "novo" pra você
> %i[gabriel rubens] => [:gabriel, :rubens]
def foo( mother = {} )
name = mother[:name]
size = mother[:size]
"#{name} has size #{size}"
end
# ...
> foo name: "Creuza", size: 50000
=> Creuza has size 50000
# or
def foo(name: nil, size: nil)
# ...
end
Tentou instalar o Sinatra 1.4.4 e se deparou com...
NoMethodError: undefined method `size' for nil:NilClass An error occurred while installing sinatra (1.4.4), and Bundler cannot continue. Make sure that `gem install sinatra -v '1.4.4'` succeeds before bundling
Pois é, a solução mais rápida pra agora é tentar instalar a versão anterior do Sinatra mesmo
gem install sinatra -v 1.4.3
Você pode tentar também dar um git clone localmente para instalar a 1.4.4 sem problemas
$ git clone https://github.com/sinatra/sinatra.git $ cd sinatra $ gem build sinatra.gemspec $ gem install sinatra-1.4.4.gem
if [ "$(whoami)" != "root" ]; then echo "You aren't the root user" exit fi