Sha256: a90c42d8e6b37509b9d921399e02cb1c7d576c172ee55b8aa8beedcc3d864dae
Contents?: true
Size: 406 Bytes
Versions: 22
Compression:
Stored size: 406 Bytes
Contents
class AddFirstNameAndLastNameToSpreeUsers < ActiveRecord::Migration[5.2] def change if Spree.user_class.present? users_table_name = Spree.user_class.table_name add_column users_table_name, :first_name, :string unless column_exists?(users_table_name, :first_name) add_column users_table_name, :last_name, :string unless column_exists?(users_table_name, :last_name) end end end
Version data entries
22 entries across 22 versions & 1 rubygems