Sha256: bab15471d13774fc155847ca09ab19ba75eb6d74b77cc865ea86be92ddd6e052

Contents?: true

Size: 303 Bytes

Versions: 16

Compression:

Stored size: 303 Bytes

Contents

class RenameFilterColumn < ActiveRecord::Migration[5.1]
  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

16 entries across 16 versions & 1 rubygems

Version Path
trusty-cms-3.3.2 db/migrate/004_rename_filter_column.rb
trusty-cms-3.3.1 db/migrate/004_rename_filter_column.rb
trusty-cms-3.2.1 db/migrate/004_rename_filter_column.rb
trusty-cms-3.3.0 db/migrate/004_rename_filter_column.rb
trusty-cms-3.2.0 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.11 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.10 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.9 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.8 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.7 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.6 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.5 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.3 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.2 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.1 db/migrate/004_rename_filter_column.rb
trusty-cms-3.1.0 db/migrate/004_rename_filter_column.rb