Sha256: f52e5224d1bad2c519e27528b00fa891ebcc443f90aafca61c39383506f17ee8
Contents?: true
Size: 296 Bytes
Versions: 20
Compression:
Stored size: 296 Bytes
Contents
class AddressRefactor < ActiveRecord::Migration def self.up change_table :addresses do |t| t.references :addressable, :polymorphic => true end change_table :orders do |t| t.remove :ship_address_id t.remove :bill_address_id end end def self.down end end
Version data entries
20 entries across 20 versions & 3 rubygems