Sha256: e67f766a0586b92520069adf3f9e8630d79e3fd0bd691823a5e9d826e5aceaaa

Contents?: true

Size: 328 Bytes

Versions: 3

Compression:

Stored size: 328 Bytes

Contents

class RenameTbCommerceOrdersFirstNameToName < ActiveRecord::Migration
  def up
    rename_column :tb_commerce_orders, :first_name, :name
    remove_column :tb_commerce_orders, :last_name
  end
  def down
    rename_column :tb_commerce_orders, :name, :first_name
    add_column :tb_commerce_orders, :last_name, :string
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 db/migrate/20150811202256_rename_tb_commerce_orders_first_name_to_name.rb
tb_commerce-0.0.3 db/migrate/20150811202256_rename_tb_commerce_orders_first_name_to_name.rb
tb_commerce-0.0.2 db/migrate/20150811202256_rename_tb_commerce_orders_first_name_to_name.rb