Sha256: 57f3776acd82247fa4556d0e2fad42753afa29ff126d873c11d0c34032ba253c
Contents?: true
Size: 361 Bytes
Versions: 5
Compression:
Stored size: 361 Bytes
Contents
class CreateRapidfireAnswerGroups < ActiveRecord::Migration def change create_table :rapidfire_answer_groups do |t| t.references :question_group t.references :user, polymorphic: true t.timestamps end add_index :rapidfire_answer_groups, :question_group_id add_index :rapidfire_answer_groups, [:user_id, :user_type] end end
Version data entries
5 entries across 5 versions & 2 rubygems