== CreatePosts: migrating ==================================================== -- create_table(:posts) rake aborted! StandardError: An error has occurred, all later migrations canceled:
Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead: CREATE TABLE posts
(id
int(11) DEFAULT NULL auto_increment PRIMARY KEY, name
varchar(255), title
varchar(255), content
text, created_at
datetime NOT NULL, updated_at
datetime NOT NULL) ENGINE=InnoDB
/usr/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.23/lib/mysql2/client.rb:80:in _query'
/usr/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.23/lib/mysql2/client.rb:80:in
block in query'
/usr/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.23/lib/mysql2/client.rb:79:in handle_interrupt'
/usr/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.23/lib/mysql2/client.rb:79:in
query'