PasteBin on this domain is being retired. Please use PasteBin on paste.adora.dk instead.

Pastebin

Paste #1058: RoR ActiveRecord neatness

< previous paste - next paste>

Pasted by Simon

Download View as text

CREATE TABLE IF NOT EXISTS `posts` (
  `id` int(11) NOT NULL auto_increment,
  `parent_id` int(11) default NULL,
  `ancestor_id` int(11) default NULL,
  `author` varchar(255) default NULL,
  `subject` varchar(255) default NULL,
  `body` text,
  `created` datetime default NULL,
  `modified` datetime default NULL,
  `hidden` tinyint(1) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

Paste below


Do not write anything in this field if you're a human.

Go to most recent paste.