You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Option :as or :type if not provided is :string by default, you can use all ActiveRecord types:
But col :name, as: :primary_key doesn't work because of ActiveRecord::ConnectionAdapters::TableDefinition#primary_keyhas one argument only, but we send two.
Then if I fix this issue (by removing options argument) I get next error:
ActiveRecord::StatementInvalid: SQLite3::SQLException: table "caras" has more than one primary key: CREATE TABLE "caras" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
What do you think?
The text was updated successfully, but these errors were encountered:
@DAddYE There is some issue about primary keys.
According to readme:
But
col :name, as: :primary_key
doesn't work because ofActiveRecord::ConnectionAdapters::TableDefinition#primary_key
has one argument only, but we send two.Then if I fix this issue (by removing
options
argument) I get next error:What do you think?
The text was updated successfully, but these errors were encountered: