I used to think the db/schema.rb
in a Rails
project stored the database schema, so that ActiveRecord
can know what table/column it has.
But earlier I surprisingly noticed that my project runs normally after I delete db/schema.rb
!
So, since the Rails
can work without it, what does schema.rb
really do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…