Sha256: daf54cef9612b3ef441e482f52e014ea3e9f2aa959be7c805d04fc890a70cd8e
Contents?: true
Size: 479 Bytes
Versions: 32
Compression:
Stored size: 479 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: 16777215 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
32 entries across 32 versions & 1 rubygems