Yes you are right, I got scared by the name completion of the console.
I started the console and after entering Project.find_ I pressed TAB for
name completion and I got this
[root@abgit ~]# cd /var/www/gitorious/app/ [root@abgit app]# bin/console
Loading production environment (Rails 2.3.18)
NOTE: Gem.source_index is deprecated, use Specification. It will be removed
on o r after
2011-11-01.
Gem.source_index called from
/var/www/gitorious/app/vendor/bundle/ruby/1.8/gems/
rails-2.3.18/lib/rails/gem_dependency.rb:21.
>> Project.find_
Project.find_by_sql Project.find_each
Project.find_hidden_method Project.find_in_batches
>> Project.find_
I concluded from this the fuchtion did not exist and asked for help.
Now I run the command anyhow and it worked.
On Friday, April 5, 2013 8:43:52 AM UTC+2, Marius Mårnes Mathiesen wrote:
>
>
> [email protected] <javascript:> writes:
> > I had read a suggestion using the console
> >> p = Project.find_by_slug "<name of project>"
> >> p.destroy
> >
> > This function no longer exists.
>
> That should definitely exist, what happens when you run it?
>
> Cheers,
> - Marius
>
--
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.