Sha256: cf223be93fc1f4eb61597c5a595b8c92f12bc73cee096f8a7edb56ceb2c24e16

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

class AddColumnsToCarriage < ActiveRecord::Migration
  def change
    rename_column :choo_choo_carriages, :recipient_id, :tracked_resource_id
    rename_column :choo_choo_carriages, :recipient_type, :tracked_resource_type
    add_column :choo_choo_carriages, :header, :string
    add_column :choo_choo_carriages, :creator_id, :integer
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
choo_choo-0.0.1 db/migrate/20140225222624_add_columns_to_carriage.rb