[RUBY] The migration file is duplicated

Recent report

We are in the process of acclaimed job hunting. What I'm doing lately is becoming a habit. Recently, I was able to get into the habit of English and muscle training. Suddenly I got tired of English, so I read aloud a simple sentence by watching Gackt's vowel pronunciation youtube. One thing that changed my mind is Google Translate. I used to think that it was garbage because it didn't translate at all, but I found out that my pronunciation was actually garbage w Muscle training increased the weight and strength of the abdominal squat main exercise 20 I'm doing only minutes. It is the momentum that the abdominal muscles are likely to crack except for the side for the first time. And what I started in the last few days is the morning conversion. When the date changed for the past two months, I was watching videos with Amazon Prime, so I am doing it as a lifestyle improvement.

This theme

** Migration file is duplicated ** It's a guy who is addicted to beginners who are just starting out! ... Yes, I did it. ⇨ ** The solution is to erase one. that's all. ** **

Migration file

● The migration file is a blueprint of the table when chewed. It is used when creating and updating a table during rails db: migrate. Once used, the migration file will not be used unless the table is updated and generated again. You can actually delete it without any problem.

● Can I really delete it? ** If you will never use the information written there **, you can delete it. Table changes are made many times during development. If there is no migration file at that time, the computer will not be able to read the table and an error will occur even if it was there before. Also, the table used in the development environment cannot be used in the production environment, and it is often the case that the DB in the production environment is installed and the table is reassembled, so it is important that there is no migration file at the production stage. It's been a long time, but the conclusion is ** I'm relieved even if I don't use it anymore **.

● If you double Even if the migration file is duplicated, I am worried that if I delete it, I will not be able to create a table (I became myself). However, in this case, there are only two identical design documents, so even if one is used, it will not change, and there are not as many tables as there are migration files, so please delete one with confidence.

Finally

I want a job offer! I want to enjoy the engineer life as soon as possible!

Recommended Posts

The migration file is duplicated
[Rails] Delete the migration file
When the bean class name is duplicated
How to delete the wrong migration file
What is the right migration data type? ??
How to delete the migration file NO FILE
What is the best file reading (Java)
The ruby version is managed in the .rbenv / version file
Completely delete the migration file that you failed to delete
Solution if you delete the migration file in the up state
What is the pluck method?
About the File :: Stat class
This is the first post.
What is the BufferedReader class?
What is a jar file?
[rails] Deleted NOFILE migration file
Is the ternary operator evil?
What is the constructor for?
Until the code is executed
Java is the 5th day
What is the initialize method?
Database command for migration file environment
'% 02d' What is the percentage of% 2?
Replace the contents of the Jar file
Where is the Java LocalDateTime.now () timezone?
The Biostar Handbook is too interesting
Unzip the zip file in Java
Check the migration status of rails
Memo: [Java] If a file is in the monitored directory, process it.