Sha256: 3c617711d1a44ed172068e0fed3ba4f6350bdac961542486981af8f7ef69ddc9

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

# -*- encoding : utf-8 -*-

class AddCardVirtualsTable < Cardio::Migration::Schema
  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

4 entries across 4 versions & 1 rubygems

Version Path
card-1.108.1 mod/core/data/schema/20180514152037_add_card_virtuals_table.rb
card-1.108.0 mod/core/data/schema/20180514152037_add_card_virtuals_table.rb
card-1.107.0 mod/core/data/schema/20180514152037_add_card_virtuals_table.rb
card-1.106.0 mod/core/data/schema/20180514152037_add_card_virtuals_table.rb