# Depreciation warning when running a db migrate!

**URL:** <https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570>\
**Category:** Rails\
**Created:** [August 19, 2010, 8:25pm UTC](https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570 "2010-08-19T20:25:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakx12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Post date:** [August 19, 2010, 8:25pm UTC](https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570/1 "2010-08-19T20:25:17Z")

</div>

Hey,  
Whenever i try and run a db migrate i get this error:

DEPRECATION WARNING: Rake tasks in vendor/plugins/livevalidation/tasks  
and vendor/plugins/restful-authentication/tasks are deprecated. Use  
lib/tasks instead. (called from  
/Users/Zack/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)

I tried moving the different plugins task rake files to lib/tasks and i  
got no error but the database did not migrate. How can I fix this?

Many thanks,

jakx12.

---

<div class="post-metadata">

**Author:** ![jakx12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Post date:** [August 19, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570/2 "2010-08-19T21:55:16Z")

</div>

On 19 August 2010 19:25, Zack N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hey,  
> Whenever i try and run a db migrate i get this error:
> 
> DEPRECATION WARNING: Rake tasks in vendor/plugins/livevalidation/tasks  
> and vendor/plugins/restful-authentication/tasks are deprecated. Use  
> lib/tasks instead. (called from  
> /Users/Zack/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)

You can ignore this, it is just a warning that the plugins rake tasks  
are not in what is now considered the correct folder. It is possible  
that there are later versions of the plugins that sort the problem.

Colin

---

<div class="post-metadata">

**Author:** ![jakx12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Post date:** [August 20, 2010, 10:29am UTC](https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570/3 "2010-08-20T10:29:14Z")

</div>

On 19 August 2010 22:52, Zack N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > You can ignore this, it is just a warning that the plugins rake tasks  
> > are not in what is now considered the correct folder. It is possible  
> > that there are later versions of the plugins that sort the problem.
> > 
> > Colin
> 
> Ok thanks, but it still never migrates the database…

In that case there must be something else wrong. Post the migration  
file (and it’s name) and the full output from the migrate. Also the  
file db/schema.rb and we will see if we can work out what is  
happening.

Colin

---

<div class="post-metadata">

**Author:** ![jakx12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Post date:** [August 19, 2010, 11:52pm UTC](https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570/4 "2010-08-19T23:52:08Z")

</div>

Colin L. wrote:

> On 19 August 2010 19:25, Zack N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hey,  
> > Whenever i try and run a db migrate i get this error:
> > 
> > DEPRECATION WARNING: Rake tasks in vendor/plugins/livevalidation/tasks  
> > and vendor/plugins/restful-authentication/tasks are deprecated. Use  
> > lib/tasks instead. (called from  
> > /Users/Zack/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)
> 
> You can ignore this, it is just a warning that the plugins rake tasks  
> are not in what is now considered the correct folder. It is possible  
> that there are later versions of the plugins that sort the problem.
> 
> Colin

Ok thanks, but it still never migrates the database…

---

<div class="post-metadata">

**Author:** ![jakx12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Post date:** [August 20, 2010, 12:27pm UTC](https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570/5 "2010-08-20T12:27:29Z")

</div>

On 20 August 2010 11:15, Zack N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> said that the migrate had happened , but it hadnt. So I just manually  
> updated the database.

In that case you have not found the problem, merely avoided it. In  
order to avoid it happening again I suggest that you roll back that  
migration using rake db:rollback (check the db to make sure it has  
rolled back) and then run it again and find out why it is not working.  
Otherwise you may find yourself in more of a mess when you attempt to  
run the next migration.

Colin

---

<div class="post-metadata">

**Author:** ![jakx12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Post date:** [August 20, 2010, 12:15pm UTC](https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570/6 "2010-08-20T12:15:53Z")

</div>

Colin L. wrote:

> On 19 August 2010 22:52, Zack N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > You can ignore this, it is just a warning that the plugins rake tasks  
> > > are not in what is now considered the correct folder. ï¿½It is possible  
> > > that there are later versions of the plugins that sort the problem.
> > > 
> > > Colin
> > 
> > Ok thanks, but it still never migrates the database…
> 
> In that case there must be something else wrong. Post the migration  
> file (and it’s name) and the full output from the migrate. Also the  
> file db/schema.rb and we will see if we can work out what is  
> happening.
> 
> Colin

Thanks, but I found the problem late last night. Simply the migrations  
said that the migrate had happened , but it hadnt. So I just manually  
updated the database.

---

<div class="post-metadata">

**Author:** ![jakx12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Post date:** [August 20, 2010, 1:59pm UTC](https://www.ruby-forum.com/t/depreciation-warning-when-running-a-db-migrate/193570/7 "2010-08-20T13:59:26Z")

</div>

Colin L. wrote:

> On 20 August 2010 11:15, Zack N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > said that the migrate had happened , but it hadnt. So I just manually  
> > updated the database.
> 
> In that case you have not found the problem, merely avoided it. In  
> order to avoid it happening again I suggest that you roll back that  
> migration using rake db:rollback (check the db to make sure it has  
> rolled back) and then run it again and find out why it is not working.  
> Otherwise you may find yourself in more of a mess when you attempt to  
> run the next migration.
> 
> Colin

ok, I did what you said, but everything seems to be working fine now. So  
I think its actually ok.
