I
I
ivasenkoartem2018-05-15 16:59:10
Ruby on Rails
ivasenkoartem, 2018-05-15 16:59:10

Why is the field for the model not being added in rails?

I want to add a type field to the project model:
5afae733f0721319190210.pngAppears:
5afae74336795248871745.pngI am migrating and gives an error:
5afae784bb35f396788446.pngHow to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitri Sinitsa, 2018-05-15
@ivasenkoartem

You already have a column with the given name in this table (duplicate column name).
Delete the migration and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question