Rails

From Wasya Wiki
Jump to: navigation, search

Re-create schema.rb

From: https://stackoverflow.com/questions/9731585/lost-my-schema-rb-can-it-be-regenerated

rake db:drop  # ERASES THE DATABASE !!!! 
rake db:create
rake db:migrate