I am trying to run Peatio, an asset exchange. While migrating DB
bin/rake db:migrate RAILS_ENV=development
I am getting following error.
== 20130624011823 CreateMembers: migrating ==================================== -- create_table(:members) 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
members(idint(11) DEFAULT NULL auto_increment PRIMARY KEY,snvarchar(255),namevarchar(255),pin_digestvarchar(255),identity_idint(11),created_atdatetime,updated_atdatetime) ENGINE=InnoDB/home/firdoeshalikhan/Desktop/peatio/db/migrate/20130624011823_create_members.rb:3:inchange' ActiveRecord::StatementInvalid: Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead: CREATE TABLEmembers(idint(11) DEFAULT NULL auto_increment PRIMARY KEY,snvarchar(255),namevarchar(255),emailvarchar(255),pin_digestvarchar(255),identity_idint(11),created_atdatetime,updated_atdatetime) ENGINE=InnoDB /home/firdoeshalikhan/Desktop/peatio/db/migrate/20130624011823_create_members.rb:3:inchange' Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead /home/firdoeshalikhan/Desktop/peatio/db/migrate/20130624011823_create_members.rb:3:in `change' Tasks: TOP => db:migrate