Sha256: 83d5d24d6a288d34bf0edbbfecf7bb86eef304a5e0af955cd3a62eb7baca3b40
Contents?: true
Size: 367 Bytes
Versions: 41
Compression:
Stored size: 367 Bytes
Contents
class CreateAnswerHasItems < ActiveRecord::Migration def self.up create_table :answer_has_items do |t| t.integer :answer_id t.integer :item_id t.integer :position t.timestamps end add_index :answer_has_items, :answer_id add_index :answer_has_items, :item_id end def self.down drop_table :answer_has_items end end
Version data entries
41 entries across 41 versions & 1 rubygems