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

Version Path
card-1.96.7 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.96.6 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.96.5 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.96.4 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.96.3 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.96.2 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.96.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.96.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.95.3 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.95.2 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.95.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.95.0 db/migrate/20180514152037_add_card_virtuals_table.rb