Sha256: 67767839265ab962d7f2cd88519267c8c4674d1206d569643b658b85e70c0db7

Contents?: true

Size: 645 Bytes

Versions: 3

Compression:

Stored size: 645 Bytes

Contents

# encoding: utf-8

class RenameTextbits < ActiveRecord::Migration
  def self.up
    rename_table :textbits, :localizations
    rename_column :localizations, :language, :locale
    rename_column :localizations, :textable_id, :localizable_id
    rename_column :localizations, :textable_type, :localizable_type
    rename_column :localizations, :body, :value
  end

  def self.down
    rename_table :localizations, :textbits
    rename_column :textbits, :locale, :language
    rename_column :textbits, :localizable_id, :textable_id
    rename_column :textbits, :localizable_type, :textable_type
    rename_column :textbits, :value, :body
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pages_core-3.4.3 db/migrate/20120627033112_rename_textbits.rb
pages_core-3.5.1 db/migrate/20120627033112_rename_textbits.rb
pages_core-3.4.2 db/migrate/20120627033112_rename_textbits.rb