Answer the question
In order to leave comments, you need to log in
In Ruby on Rails, when creating a new record in a table, the id column is not created automatically (there is no auto and primary key), what migration should I create?
How to fix the current table (which migration to create or something) if when creating a new record id creates nothing (nil)???
Answer the question
In order to leave comments, you need to log in
rails generate migration AddIndexToYourField your_index_field:string:index
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question