Brand new one here
I’ve looked and googled and searched.
There are lots of references to RoR Naming Conventions - I haven’t
actually been able to locate the list of these conventions.
Is there a single list of conventions?
Or are they defined through out the documentation and you pick them up
as you go?
I’m looking for the Database ones right now.
I’ve got 8 text files of exported data that I’m putting into a
database and building my first RoR app around this data.
How should this table be done in relation to the RoR conventions?
CREATE TABLE makes
(
code
varchar(4) NOT NULL,
Description
varchar(30) NOT NULL,
PRIMARY KEY (code
)
);
CREATE TABLE years
(
make_code
varchar(4) NOT NULL,
family
varchar(7) NOT NULL,
vehicleType
varchar(2) NOT NULL,
yearGroup
int(4) NOT NULL,
monthGroup
int(2) NOT NULL,
description
varchar(10) NOT NULL,
KEY make_code
(make_code
),
KEY family
(family
),
KEY vehicleType
(vehicleType
),
KEY yearGroup
(yearGroup
),
KEY monthGroup
(monthGroup
)
);
Thanks