Sha256: fa0938822f6aca03ceee25fc463855c4e394dbb0399f7949b8656c320c4475d2
Contents?: true
Size: 877 Bytes
Versions: 60
Compression:
Stored size: 877 Bytes
Contents
class UpgradeTo160 < ActiveRecord::Migration def self.up add_column :cms_sites, :identifier, :string add_index :cms_sites, :identifier rename_column :cms_layouts, :slug, :identifier rename_column :cms_blocks, :label, :identifier rename_column :cms_snippets, :slug, :identifier add_column :cms_categories, :site_id, :integer, :null => :false add_index :cms_categories, [:site_id, :categorized_type, :label], :unique => true end def self.down remove_index :cms_categories, [:site_id, :categorized_type, :label], :unique => true remove_column :cms_categories, :site_id rename_column :cms_snippets, :identifier, :slug rename_column :cms_blocks, :identifier, :label rename_column :cms_layouts, :identifier, :slug remove_index :cms_sites, :identifier remove_column :cms_sites, :identifier end end
Version data entries
60 entries across 60 versions & 2 rubygems