From: Jesse Hu Date: 2008-02-22T18:32:54+09:00 Subject: Re: Create record into Oracle DB ------=_Part_6247_6134532.1203672775930 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/2/22, Alexey Nik : > > Jesse Hu wrote: > > 2008/2/21, Alexey Nik : > >> >> Posted via http://www.ruby-forum.com/. > >> class CreateFolderTrees < ActiveRecord::Migration > >> Posted via http://www.ruby-forum.com/. > >> > >> > > That's the problem. You need to define columns for the folder_trees > > table > > like this: > > > > *def self.up > > create_table :folder_trees do |t|* > > * t.column :client_name, :string* > > * t.column :tree_name, :string > > end > > end* > > ** > > > > *Then run rake task "rake db:migrate" to create the table in db.* > > Table structure in DB already exist, like this: > { > CLIENT_NAME VARCHAR2(35 BYTE) NOT NULL, > TREE_NAME VARCHAR2(35 BYTE) NOT NULL > } > > -- > Posted via http://www.ruby-forum.com/. > > You can ask for help from the rails-talk mailing list [ rubyonrails-talk@googlegroups.com]. -- Cheers, Jesse ------=_Part_6247_6134532.1203672775930--