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