mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
14 lines
354 B
Ruby
14 lines
354 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SplitCustomersName < ActiveRecord::Migration[6.1]
|
|
def up
|
|
add_column :customers, :first_name, :string, null: false, default: ""
|
|
add_column :customers, :last_name, :string, null: false, default: ""
|
|
end
|
|
|
|
def down
|
|
remove_column :customers, :first_name
|
|
remove_column :customers, :last_name
|
|
end
|
|
end
|