Kouta Osabe
2006-Jan-21 15:27 UTC
[Rails] Help...why ''rake migrate'' can''t be executed on RadRails
''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:kota0919wasabi@yahoo.co.jp 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/
Alex Young
2006-Jan-22 11:17 UTC
[Rails] Help...why ''rake migrate'' can''t be executed on RadRails
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. -- Alex
Ben Munat
2006-Jan-22 18:45 UTC
[Rails] Help...why ''rake migrate'' can''t be executed on RadRails
Alex Young wrote:> 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. > > 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. >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
Jeff Cohen
2006-Jan-22 21:06 UTC
[Rails] Re: Help...why ''rake migrate'' can''t be executed on RadRails
Ben Munat wrote:> Alex Young 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! > > bI 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 www.softiesonrails.com -- Posted via http://www.ruby-forum.com/.
Flaw
2006-Jan-23 06:11 UTC
[Rails] Re: Help...why ''rake migrate'' can''t be executed on RadRails
Personally I set up an ''External Application'' to do tasks like this. The output still shows up in the terminal window. On 1/22/06, Jeff Cohen <cohen.jeff@gmail.com> wrote:> Ben Munat wrote: > > Alex Young 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 > www.softiesonrails.com > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- James Hearn
Kyle Shank
2006-Feb-01 13:30 UTC
[Rails] Help...why ''rake migrate'' can''t be executed on RadRails
We need to provide actual support for rails schemas and will be doing so in the future. On 1/21/06, Kouta Osabe <kota0919wasabi@yahoo.co.jp> 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. > 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:kota0919wasabi@yahoo.co.jp > > 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/ > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >