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-2.0.0.pre.beta db/migrate/004_rename_filter_column.rb
trusty-cms-1.2.29 db/migrate/004_rename_filter_column.rb
trusty-cms-1.2.28 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.28 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.27 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.26 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.25 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.24 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.23 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.22 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.21 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.20 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.19 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.18 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.17 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.16 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.15 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.14 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.13 db/migrate/004_rename_filter_column.rb
trusty-cms-1.1.12 db/migrate/004_rename_filter_column.rb