2008年3月9日 星期日

crate a simple web using Rail

(1) create directory with files
rails -d mysql myWeb
(2) create database
create database myWeb_production;
create database myWeb_test;
create database myWeb_development;
ps: when execute rail command, it use development database by default

(3) create table
USE shovell_development;

CREATE TABLE `person` (

`id` int(11) NOT NULL auto_increment,

`name` varchar(255) default NULL,

`link` varchar(255) default NULL,

PRIMARY KEY (`id`)

);

沒有留言: