Permalink
Browse files

Adds the missing AUTOINCREMENT keyword to migrate_spec (#708)

  • Loading branch information...
mereghost authored and jodosha committed Jan 2, 2017
1 parent 69c5b20 commit 6e80d339e97b67563c75daa5b2b6cf4d4bceffd8
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/integration/cli/db/migrate_spec.rb
@@ -51,7 +51,7 @@
db = Pathname.new("db").join("#{project}_development.sqlite")

users = `sqlite3 #{db} ".schema users"`
expect(users).to include("CREATE TABLE `users`(`id` integer DEFAULT (NULL) NOT NULL PRIMARY KEY, `name` varchar(255) DEFAULT (NULL) NULL);")
expect(users).to include("CREATE TABLE `users`(`id` integer DEFAULT (NULL) NOT NULL PRIMARY KEY AUTOINCREMENT, `name` varchar(255) DEFAULT (NULL) NULL);")

version = `sqlite3 #{db} "SELECT filename FROM schema_migrations ORDER BY filename DESC LIMIT 1"`
expect(version).to include("create_users")

0 comments on commit 6e80d33

Please sign in to comment.