Sha256: 3c58e2a970724f3ab166b7ce6f8e874167ac6e0757fd234ee8ca6db414129aea

Contents?: true

Size: 298 Bytes

Versions: 129

Compression:

Stored size: 298 Bytes

Contents

class RenameFilterColumn < ActiveRecord::Migration
  def self.up
    rename_column :page_parts, :filter, :filter_id
    rename_column :snippets, :filter, :filter_id
  end

  def self.down
    rename_column :page_parts, :filter_id, :filter
    rename_column :snippets, :filter_id, :filter
  end
end

Version data entries

129 entries across 129 versions & 6 rubygems

Version Path
radiant-1.1.0.rc1 db/migrate/004_rename_filter_column.rb
radiant-1.1.0.beta db/migrate/004_rename_filter_column.rb
radiant-1.0.1 db/migrate/004_rename_filter_column.rb
radiant-1.1.0.alpha db/migrate/004_rename_filter_column.rb
radiant-1.0.0 db/migrate/004_rename_filter_column.rb
radiant-1.0.0.rc5 db/migrate/004_rename_filter_column.rb
radiant-1.0.0.rc4 db/migrate/004_rename_filter_column.rb
radiant-1.0.0.rc3 db/migrate/004_rename_filter_column.rb
kajam-1.0.3.rc2 db/migrate/004_rename_filter_column.rb
radiant-1.0.0.rc2 db/migrate/004_rename_filter_column.rb
radiant-1.0.0.rc1 db/migrate/004_rename_filter_column.rb
radiant-rails3-0.1 db/migrate/004_rename_filter_column.rb
radiantcms-couchrest_model-0.2.4 db/migrate/004_rename_filter_column.rb
radiantcms-couchrest_model-0.2.2 db/migrate/004_rename_filter_column.rb
radiantcms-couchrest_model-0.2.1 db/migrate/004_rename_filter_column.rb
radiantcms-couchrest_model-0.2 db/migrate/004_rename_filter_column.rb
radiantcms-couchrest_model-0.1.9 db/migrate/004_rename_filter_column.rb
radiantcms-couchrest_model-0.1.8 db/migrate/004_rename_filter_column.rb
radiantcms-couchrest_model-0.1.7 db/migrate/004_rename_filter_column.rb
radiantcms-couchrest_model-0.1.6 db/migrate/004_rename_filter_column.rb