Sha256: 5b01ca5e1c2f6a0770990178639530476c1ca533bb36e7a6e18a81d75b312c37

Contents?: true

Size: 209 Bytes

Versions: 88

Compression:

Stored size: 209 Bytes

Contents

class RenameTypeColumnOnPageToClassName < ActiveRecord::Migration
  def self.up
    rename_column 'pages', 'type', 'class_name'
  end

  def self.down
    rename_column 'pages', 'class_name', 'type'
  end
end

Version data entries

88 entries across 88 versions & 6 rubygems

Version Path
trusty-cms-1.1.13 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.12 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.11 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.10 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.9 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.8 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.7 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.6 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.5 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.4 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.3 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.2 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.1 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.0 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.1.0.rc1 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.0.1 db/migrate/011_rename_type_column_on_page_to_class_name.rb
trusty-cms-1.0.0 db/migrate/011_rename_type_column_on_page_to_class_name.rb
radiant-1.1.4 db/migrate/011_rename_type_column_on_page_to_class_name.rb
radiant-1.1.3 db/migrate/011_rename_type_column_on_page_to_class_name.rb
radiant-1.1.2 db/migrate/011_rename_type_column_on_page_to_class_name.rb