Answer the question
In order to leave comments, you need to log in
Syntax error during migration. How to fix?
Forgot to add the date of birth field to the registration form
Created a new migration
class AddBirthdayColumnToUsers < ActiveRecord::Migration[6.0]
def change
add_column table_name :users, column_name :birthday, type :string
end
end
Answer the question
In order to leave comments, you need to log in
I wrote like this and it all worked, but why it didn’t work before and why there was such an error still didn’t understand
class AddBirthdayColumnToUsers < ActiveRecord::Migration[6.0]
def change
add_column :users, :birthday, :date
end
end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question