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.16.1 db/migrate/20121118114000_split_link_type.rb
card-1.16.0 db/migrate/20121118114000_split_link_type.rb
card-1.15.7 db/migrate/20121118114000_split_link_type.rb
card-1.15.6 db/migrate/20121118114000_split_link_type.rb
card-1.15.5 db/migrate/20121118114000_split_link_type.rb
card-1.15.4 db/migrate/20121118114000_split_link_type.rb
card-1.15.3 db/migrate/20121118114000_split_link_type.rb
card-1.15.2 db/migrate/20121118114000_split_link_type.rb
card-1.15.1 db/migrate/20121118114000_split_link_type.rb
card-1.15.0 db/migrate/20121118114000_split_link_type.rb
card-1.15.pre2 db/migrate/20121118114000_split_link_type.rb
card-1.15.pre db/migrate/20121118114000_split_link_type.rb
wagn-1.14.9 db/migrate/20121118114000_split_link_type.rb
wagn-1.14.8 db/migrate/20121118114000_split_link_type.rb
wagn-1.14.7 db/migrate/20121118114000_split_link_type.rb
wagn-1.14.6 db/migrate/20121118114000_split_link_type.rb
wagn-1.14.5 db/migrate/20121118114000_split_link_type.rb
wagn-1.14.4 db/migrate/20121118114000_split_link_type.rb
wagn-1.14.3 db/migrate/20121118114000_split_link_type.rb
wagn-1.14.2 db/migrate/20121118114000_split_link_type.rb