Sha256: 29336cbfad5e219de07d1f5e4b7323bbed4d79cb468c03b66132be03096c0292
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
class CreateGoGamificationScorings < ActiveRecord::Migration[5.1] def change create_table :go_gamification_scorings do |t| t.references :task,index: {:name => "index_game_scoring_on_tasks"} t.references :subjectable, polymorphic: true,index: {:name => "index_game_scoring_on_subjectable"} t.timestamps end add_index :go_gamification_scorings, [:subjectable_id, :subjectable_type], name: 'index_go_game_score_on_subjectable' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
go_gamification-0.0.7 | db/migrate/20171020181620_create_go_gamification_scorings.rb |
go_gamification-0.0.6 | db/migrate/20171020181620_create_go_gamification_scorings.rb |