Displaying 1 result from an estimated 1 matches for "schumi58".
Did you mean:
schumi
2008 Jul 19
1
Rails:Using Insert statement in active record?
...#39;'rubygems''
require ''active_record''
puts "connecting to db...."
ActiveRecord::Base.establish_connection(
:adapter => "mysql",
:host => "localhost",
# :username => "myuser",
:password => "schumi58",
:database => "test"
)
puts "connection established"
ActiveRecord::Schema.define do
drop_table(:testTable)
create_table(:testTable) do |t|
t.column :name, :string
end
end
I am also referring to Active Record''s rdoc but am not able to ma...