Sha256: 9c380abc8a721a3a1c05534218c513b6fdf45f5fdca6d6945cb3452a7756c97d
Contents?: true
Size: 461 Bytes
Versions: 8
Compression:
Stored size: 461 Bytes
Contents
class CreateGoGamificationScorings < ActiveRecord::Migration[5.1] def change create_table :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 :gamification_scorings, [:subjectable_id, :subjectable_type], name: 'index_go_game_score_on_subjectable' end end
Version data entries
8 entries across 8 versions & 1 rubygems