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

Version Path
card-1.105.6 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.105.5 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.105.4 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.105.3 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.105.2.pre1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.105.2 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.105.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.105.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.104.2 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.104.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.104.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.103.4 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.103.3 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.103.2 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.103.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.103.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.101.7 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.102.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.101.6 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.101.5 db/migrate/20180514152037_add_card_virtuals_table.rb