Closed falko100 closed 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.
rails db:migrate
When I run rails db:migrate: I get errors like this:
SQLite3::SQLException: table "users" already exists
Anyone knows how to fix this?
Deleted and ran rails db:migrate. Up to next error.
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?