Sha256: 3af1f7e9a597424f8e56346c034e147ce1d5494613ce1e58af45d297cf1e2947

Contents?: true

Size: 595 Bytes

Versions: 76

Compression:

Stored size: 595 Bytes

Contents

# -*- encoding : utf-8 -*-
class SplitLinkType < ActiveRecord::Migration
  def up
    add_column :card_references, :present, :integer
    rename_column :card_references, :card_id, :referer_id
    rename_column :card_references, :referenced_card_id, :referee_id
    rename_column :card_references, :referenced_name, :referee_key
  end

  def down
    rename_column :card_references, :referer_id, :card_id
    rename_column :card_references, :referee_id, :referenced_card_id
    rename_column :card_references, :referee_key, :referenced_name
    remove_column :card_references, :present
  end
end

Version data entries

76 entries across 76 versions & 2 rubygems

Version Path
card-1.91 db/migrate/20121118114000_split_link_type.rb
card-1.21.0 db/migrate/20121118114000_split_link_type.rb
card-1.20.4 db/migrate/20121118114000_split_link_type.rb
card-1.20.3 db/migrate/20121118114000_split_link_type.rb
card-1.20.2 db/migrate/20121118114000_split_link_type.rb
card-1.20.1 db/migrate/20121118114000_split_link_type.rb
card-1.20.0 db/migrate/20121118114000_split_link_type.rb
card-1.19.6 db/migrate/20121118114000_split_link_type.rb
card-1.19.5 db/migrate/20121118114000_split_link_type.rb
card-1.19.4 db/migrate/20121118114000_split_link_type.rb
card-1.19.3 db/migrate/20121118114000_split_link_type.rb
card-1.19.2 db/migrate/20121118114000_split_link_type.rb
card-1.19.1 db/migrate/20121118114000_split_link_type.rb
card-1.19.0 db/migrate/20121118114000_split_link_type.rb
card-1.18.6 db/migrate/20121118114000_split_link_type.rb
card-1.18.5 db/migrate/20121118114000_split_link_type.rb
card-1.18.4 db/migrate/20121118114000_split_link_type.rb
card-1.18.3 db/migrate/20121118114000_split_link_type.rb
card-1.18.2 db/migrate/20121118114000_split_link_type.rb
card-1.18.1 db/migrate/20121118114000_split_link_type.rb