Skip to content

Commit

Permalink
Adds the missing AUTOINCREMENT keyword to migrate_spec (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
mereghost authored and jodosha committed Jan 2, 2017
1 parent 69c5b20 commit 6e80d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/cli/db/migrate_spec.rb
Expand Up @@ -51,7 +51,7 @@
db = Pathname.new("db").join("#{project}_development.sqlite") db = Pathname.new("db").join("#{project}_development.sqlite")


users = `sqlite3 #{db} ".schema users"` 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"` version = `sqlite3 #{db} "SELECT filename FROM schema_migrations ORDER BY filename DESC LIMIT 1"`
expect(version).to include("create_users") expect(version).to include("create_users")
Expand Down

0 comments on commit 6e80d33

Please sign in to comment.