# Help...why 'rake migrate' can't be executed on RadRails

**URL:** <https://www.ruby-forum.com/t/help-why-rake-migrate-cant-be-executed-on-radrails/63743>\
**Category:** Rails\
**Created:** [January 21, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/help-why-rake-migrate-cant-be-executed-on-radrails/63743 "2006-01-21T16:27:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kouta\_Osabe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@Kouta\_Osabe](https://www.ruby-forum.com/u/Kouta_Osabe)\
**Post date:** [January 21, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/help-why-rake-migrate-cant-be-executed-on-radrails/63743/1 "2006-01-21T16:27:51Z")

</div>

‘rake migrate’ command can’t be executed on RadRails?

I found Terminal Window at RadRails and executed ‘rake migrate’ on that  
terminal  
many times.but nothing happend,even error messages.  
I made InitialSchema file like these and configured database.yml.  
of course I made database before executing ‘rake migrate’  
anyone,get me advice,please  
Tanks

-~kota~

===================================  
class InitialSchema \< ActiveRecord::Migration  
def self.up  
create\_table :lists do |t|  
t.column :title, :string  
t.column :created\_\_on, :time  
t.column :updated\_on, :time  
end

```
create_table :items do |t|
	t.column :list_id, :integer
	t.column :note, :string
	t.column :completion, :boolean, :default => false
	t.column :position, :integer
	t.column :created_on, :time
	t.column :updated_on, :time
end

```

end

def self.down  
drop\_table :lists  
drop\_table :items  
end

# end

* * *

Kouta Osabe

E-mail:removed\_email\_address@domain.invalid

## Always Look on the Bright Side of Life! - from Monty Python

* * *

GANBARE! NIPPON!  
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE PARTNER  
[http://pr.mail.yahoo.co.jp/ganbare-nippon/](http://pr.mail.yahoo.co.jp/ganbare-nippon/)

---

<div class="post-metadata">

**Author:** ![Kouta\_Osabe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@Kouta\_Osabe](https://www.ruby-forum.com/u/Kouta_Osabe)\
**Post date:** [January 22, 2006, 12:18pm UTC](https://www.ruby-forum.com/t/help-why-rake-migrate-cant-be-executed-on-radrails/63743/2 "2006-01-22T12:18:49Z")

</div>

Kouta Osabe wrote:

> ‘rake migrate’ command can’t be executed on RadRails?
> 
> I found Terminal Window at RadRails and executed ‘rake migrate’ on that  
> terminal  
> many times.but nothing happend,even error messages.  
> I made InitialSchema file like these and configured database.yml.  
> What’s the migration’s filename, and where have you put it?

Does a schema\_info table exist in your database? You shouldn’t have to  
create that yourself, of course - but if it exists, it’s a clue that  
rake thinks it’s done _something_. If it exists, what’s the data in it?

I don’t use RadRails, so there might be something else it does that gets  
in the way, but from a straight Rails perspective, that’s where to start  
looking.

---

<div class="post-metadata">

**Author:** ![Kouta\_Osabe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@Kouta\_Osabe](https://www.ruby-forum.com/u/Kouta_Osabe)\
**Post date:** [January 22, 2006, 7:45pm UTC](https://www.ruby-forum.com/t/help-why-rake-migrate-cant-be-executed-on-radrails/63743/3 "2006-01-22T19:45:38Z")

</div>

Alex Y. wrote:

> in the way, but from a straight Rails perspective, that’s where to start  
> looking.

Actually, I think this might just be a limitation of that terminal  
widget in radrails… I  
can’t seem to find it now, but I remember being annoyed that it didn’t  
really work like a  
terminal… that there were only certain things you could do.

I would try doing some other stuff – even another rake file – in it  
before you assume  
that there’s a problem with your db/app/rakefile. Or better yet, just  
use your regular OS  
terminal window!

b

---

<div class="post-metadata">

**Author:** ![Kouta\_Osabe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@Kouta\_Osabe](https://www.ruby-forum.com/u/Kouta_Osabe)\
**Post date:** [January 23, 2006, 7:14am UTC](https://www.ruby-forum.com/t/help-why-rake-migrate-cant-be-executed-on-radrails/63743/4 "2006-01-23T07:14:24Z")

</div>

Personally I set up an ‘External Application’ to do tasks like this.  
The output still shows up in the terminal window.

---

<div class="post-metadata">

**Author:** ![Kouta\_Osabe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@Kouta\_Osabe](https://www.ruby-forum.com/u/Kouta_Osabe)\
**Post date:** [February 1, 2006, 2:32pm UTC](https://www.ruby-forum.com/t/help-why-rake-migrate-cant-be-executed-on-radrails/63743/5 "2006-02-01T14:32:12Z")

</div>

We need to provide actual support for rails schemas and will be doing  
so in the future.

---

<div class="post-metadata">

**Author:** ![Kouta\_Osabe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@Kouta\_Osabe](https://www.ruby-forum.com/u/Kouta_Osabe)\
**Post date:** [January 22, 2006, 10:05pm UTC](https://www.ruby-forum.com/t/help-why-rake-migrate-cant-be-executed-on-radrails/63743/6 "2006-01-22T22:05:58Z")

</div>

Ben M. wrote:

> Alex Y. wrote:
> 
> > in the way, but from a straight Rails perspective, that’s where to start  
> > looking.
> 
> Actually, I think this might just be a limitation of that terminal  
> widget in radrails… I  
> can’t seem to find it now, but I remember being annoyed that it didn’t  
> really work like a  
> terminal… that there were only certain things you could do.
> 
> I would try doing some other stuff – even another rake file – in it  
> before you assume  
> that there’s a problem with your db/app/rakefile. Or better yet, just  
> use your regular OS  
> terminal window!
> 
> b

I use RadRails but still us a real the command prompt to do things like  
Rake.

I couldn’t figure out how to use the Terminal window and I don’t  
understand why sometimes it’s available to use and sometimes not.

Jeff

> **[Hey Daddio!](http://www.softiesonrails.com)**
>
> Home of Hey Daddio Software
