Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Created February 4, 2013 18:30
Show Gist options
  • Select an option

  • Save hub-cap/4708549 to your computer and use it in GitHub Desktop.

Select an option

Save hub-cap/4708549 to your computer and use it in GitHub Desktop.
Column('volume_type_id',
String(length=36,
convert_unicode=True,
assert_unicode=None,
unicode_error=None,
_warn_on_bytestring=False),
ForeignKey('volume_types.id'),
nullable=False),
mysql> explain volume_types;
+------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
| created_at | datetime | YES | | NULL | |
| updated_at | datetime | YES | | NULL | |
| deleted_at | datetime | YES | | NULL | |
| deleted | tinyint(1) | YES | | NULL | |
| id | varchar(36) | NO | PRI | NULL | |
| name | varchar(255) | YES | | NULL | |
+------------+--------------+------+-----+---------+-------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment