dphuang2 / PoGoBag

Analyze and share your Pokémon through a locally run server! Official Site access has been stopped as of 12/23/2016
146 stars 49 forks source link

You have 17 pending migrations: (Can't update database) #36

Closed falko100 closed 8 years ago

falko100 commented 8 years ago

When I run rake db:setup I get the following:

You have 17 pending migrations: 20160727233457 CreateUsers 20160727234844 CreateItems 20160728032754 CreatePokemons 20160802201113 AddOauthToUsers 20160803064943 AddPokeNumToPokemons 20160803184514 ChangeColumnName 20160804002306 RemoveOAuthColumnsFromUser 20160804042930 AddColumnsToPokemons 20160804104111 AddColumnsToUsers 20160804110925 RenameAliasToScreenNameInUsers 20160805025856 FixIntengerMigrationForPokeNum 20160805084720 AddRecencyToPokemons 20160805090935 ChangeColumnNameInPokemons 20160805091252 ChangeCreationTimeToFloat 20160805214848 AddRefreshTokenExpireTimeToUsers 20160805224803 ChangeColumnNameInUsers 20160805235944 AddTeamToUsers Run rails db:migrate to update your database then try again.

When I run rails db:migrate: I get errors like this:

SQLite3::SQLException: table "users" already exists

Anyone knows how to fix this?

falko100 commented 8 years ago

Deleted and ran rails db:migrate. Up to next error.