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
trusty-cms-3.0.11 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.10 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.9 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.8 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.7 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.28 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.6 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.27 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.4 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.3 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.2 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.1 db/migrate/004_rename_filter_column.rb
trusty-cms-3.0.0 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.26 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.25 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.24 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.23 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.22 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.21 db/migrate/004_rename_filter_column.rb
trusty-cms-2.0.21.alpha db/migrate/004_rename_filter_column.rb