Sha256: dc6a311aae07c5b7cc0011474773b74ee4d667e57dbbbb5d4670c56cd24fa072

Contents?: true

Size: 219 Bytes

Versions: 35

Compression:

Stored size: 219 Bytes

Contents

# frozen_string_literal: true

class RenameApiKeyToSpreeApiKey < ActiveRecord::Migration[4.2]
  def change
    if table_exists?(:spree_users)
      rename_column :spree_users, :api_key, :spree_api_key
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
solidus_api-4.1.1 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-4.0.2 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.4.4 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.3.4 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.3.3 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.4.3 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-4.0.1 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-4.1.0 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-4.0.0 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.4.2 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.3.2 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.4.1 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.4.0 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.3.1 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
solidus_api-3.3.0 db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb