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-0.6.5.1 db/migrate/004_rename_filter_column.rb
radiant-0.6.5 db/migrate/004_rename_filter_column.rb
radiant-0.6.7 db/migrate/004_rename_filter_column.rb
radiant-0.6.6 db/migrate/004_rename_filter_column.rb
radiant-0.6.9 db/migrate/004_rename_filter_column.rb
radiant-0.6.8 db/migrate/004_rename_filter_column.rb
radiant-0.7.0 db/migrate/004_rename_filter_column.rb
radiant-0.8.0 db/migrate/004_rename_filter_column.rb
radiant-0.7.1 db/migrate/004_rename_filter_column.rb