rails g migration drop_all_table
rails destroy model Document Slide Version
bundle exec rake db:migrate
rails g model document version:integer contents:text meta:text tmp:text
rails g model version document_id:integer  version:integer contents:text meta:text
rake db:migrate