0

I would like to add one more field to accounts table. So I have done this

1) padrino g migration AddPhoneNumberToAccounts phone_number:string
This make a migration file named 
038_add_phone_number_to_accounts.rb
2) and I migrated.
padrino rake db:migrate -e development
But it make errors
/Users/whitesnow/.rvm/gems/ruby-2.4.1/gems/sequel-4.46.0/lib/sequel/extensions/migration.rb:601:in `block in get_migration_files': Missing migration version: 6 (Sequel::Migrator::Error)
        from /Users/whitesnow/.rvm/gems/ruby-2.4.1/gems/sequel-4.46.0/lib/sequel/extensions/migration.rb:601:in `upto'
        from /Users/whitesnow/.rvm/gems/ruby-2.4.1/gems/sequel-4.46.0/lib/sequel/extensions/migration.rb:601:in `get_migration_files'
....

How to solve this? sometimes I didn't get this errors but it doesn't update table either. Thanks.

Nomura Nori
  • 4,689
  • 8
  • 47
  • 85

0 Answers0