Sha256: c4e2310ddf4fed5e15c9909f42a69d2997009e31124e1f7c9bce39f490497735
Contents?: true
Size: 481 Bytes
Versions: 20
Compression:
Stored size: 481 Bytes
Contents
# -*- encoding : utf-8 -*- class AddCardVirtualsTable < ActiveRecord::Migration[4.2] def up drop_table :card_virtuals if table_exists? :card_virtuals create_table :card_virtuals do |t| t.integer :left_id t.integer :right_id t.text :content, limit: 16_777_215 end add_index :card_virtuals, :right_id, name: "left_id_index" add_index :card_virtuals, :left_id, name: "right_id_index" end def down drop_table :card_virtuals end end
Version data entries
20 entries across 20 versions & 1 rubygems