Sha256: b1b981ea31a11f9c430586dc6dd5c549b9cb14c9af6e9095354836083c5f45a7
Contents?: true
Size: 372 Bytes
Versions: 4
Compression:
Stored size: 372 Bytes
Contents
class CreateAnswerHasItems < ActiveRecord::Migration[4.2] 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
4 entries across 4 versions & 1 rubygems