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.101.4 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.101.3 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.101.2 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.101.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.101.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.100.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.99.6 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.99.5 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.99.4 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.99.3 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.99.2 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.99.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.99.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.98.3 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.98.2 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.98.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.98.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.97.0.1 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.97.0 db/migrate/20180514152037_add_card_virtuals_table.rb
card-1.96.8 db/migrate/20180514152037_add_card_virtuals_table.rb