#!/usr/bin/env ruby # This code comes from http://ruby-it.org/pages/4.3+-+Active+Record+come+ORM # Check the page for copyright notice and explanations CREATE TABLE `teams` ( `id` INTEGER NOT NULL, `name` VARCHAR NOT NULL, `balance` DOUBLE NOT NULL, `owner` VARCHAR NOT NULL, PRIMARY KEY(`id`) ) t = Team.new t.name = "Milan" t.balance = 99999 t.owner = "Silvio Berlusconi"