Created
November 15, 2013 23:06
-
-
Save marcometz/7493222 to your computer and use it in GitHub Desktop.
Papertrail Versions table create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `versions` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`item_type` varchar(255) NOT NULL, | |
`item_id` int(11) NOT NULL, | |
`event` varchar(255) NOT NULL, | |
`whodunnit` varchar(255) DEFAULT NULL, | |
`object` text, | |
`created_at` datetime DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `index_versions_on_item_type_and_item_id` (`item_type`,`item_id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=4981004 DEFAULT CHARSET=latin1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment