Sha256: 26543b5c790635d8cec57c0415d9371f897372fc6bf6380af615f194940e510e
Contents?: true
Size: 556 Bytes
Versions: 14
Compression:
Stored size: 556 Bytes
Contents
class StoreIdForTaxonomies < ActiveRecord::Migration def self.up if table_exists?('taxonomies') add_column :taxonomies, :store_id, :integer add_index :taxonomies, :store_id elsif table_exists?('spree_taxonomies') add_column :spree_taxonomies, :store_id, :integer add_index :spree_taxonomies, :store_id end end def self.down if table_exists?('taxonomies') remove_column :taxonomies, :store_id elsif table_exists?('spree_taxonomies') remove_column :spree_taxonomies, :store_id end end end
Version data entries
14 entries across 14 versions & 1 rubygems