Error sportdb create

113 views
Skip to first unread message

Yogesh K

unread,
Apr 24, 2017, 3:35:06 AM4/24/17
to opensport
Hi,

I am new here  tried to setup on windows machine after following step in documentation. I am getting below error. I checked the group discussion about setup up Gemfile. I am new in ruby programming. can anyone  help me to setup Gemfile ?


activerecord-utils/0.4.0 (activerecord/5.0.2) on Ruby 2.3.3 (2016-11-21) [i386-mingw32]
  [TagDb.has_many_tags] adding taggings n tags has_many assocs to model >WorldDb::Model::Country<
  [TagDb.has_many_tags] adding taggings n tags has_many assocs to model >WorldDb::Model::StateBase<
  [TagDb.has_many_tags] adding taggings n tags has_many assocs to model >WorldDb::Model::CityBase<
sportdb-update/0.1.1 on Ruby 2.3.3 (2016-11-21) [i386-mingw32]
sportdb-service/0.4.0 on Ruby 2.3.3 (2016-11-21) [i386-mingw32]
sportdb/1.11.0 on Ruby 2.3.3 (2016-11-21) [i386-mingw32]
sportdb/1.11.0 on Ruby 2.3.3 (2016-11-21) [i386-mingw32]
working directory: C:/openfootball
Connecting to db using settings:
{:adapter=>"sqlite3", :database=>"./sport.db"}
-- create_table(:logs)
   -> 0.0049s
-- create_table(:props, {})
   -> 0.0006s
-- create_table(:tags)
   -> 0.0013s
-- add_index(:tags, :key, {:unique=>true})
   -> 0.0008s
-- create_table(:taggings)
   -> 0.0017s
-- add_index(:taggings, :tag_id)

*** error: Index name 'index_taggings_on_tag_id' on table 'taggings' already exists

Regards,
Yogesh

Gerald Bauer

unread,
Apr 24, 2017, 3:40:55 AM4/24/17
to open...@googlegroups.com
Hello,

Welcome to sport.db / football.db.

> *** error: Index name 'index_taggings_on_tag_id' on table 'taggings' already exists

Sorry for the trouble. That is a known error with ActiveRecord
5.x. The 5.x series is not yet supported. You're using 5.0.2.

Please, use a Gemfile and downgrade ActiveRecord to the 4.2.x series.

Search this mailing list / forum for examples. Cheers.
Reply all
Reply to author
Forward
0 new messages