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

Version Path
go_gamification-0.0.20 db/migrate/20171020181620_create_go_gamification_scorings.rb
go_gamification-0.0.19 db/migrate/20171020181620_create_go_gamification_scorings.rb
go_gamification-0.0.18 db/migrate/20171020181620_create_go_gamification_scorings.rb
go_gamification-0.0.17 db/migrate/20171020181620_create_go_gamification_scorings.rb
go_gamification-0.0.16 db/migrate/20171020181620_create_go_gamification_scorings.rb
go_gamification-0.0.15 db/migrate/20171020181620_create_go_gamification_scorings.rb
go_gamification-0.0.14 db/migrate/20171020181620_create_go_gamification_scorings.rb
go_gamification-0.0.13 db/migrate/20171020181620_create_go_gamification_scorings.rb