From: Alexey Nik Date: 2008-02-22T17:45:39+09:00 Subject: Re: Create record into Oracle DB 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/.