Sha256: a79c667834777a54e0cb855c7ded00769de98196895013fa9b8200eab3ab53a2

Contents?: true

Size: 517 Bytes

Versions: 16

Compression:

Stored size: 517 Bytes

Contents

class RefactorImageToFile < ActiveRecord::Migration
  def change
    rename_table :rich_rich_images, :rich_rich_files

    rename_column :rich_rich_files, :image_file_name, :rich_file_file_name
    rename_column :rich_rich_files, :image_content_type, :rich_file_content_type
    rename_column :rich_rich_files, :image_file_size, :rich_file_file_size
    rename_column :rich_rich_files, :image_updated_at, :rich_file_updated_at

    add_column :rich_rich_files, :simplified_type, :string, :default => "file"
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
st-rich-1.5.1 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.4.6 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.4.5 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.4.4 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.4.3 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.4.2 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.4.1 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.4 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.3.1 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.3.0 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.2.0 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.1.0 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.0.3 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.0.2 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.0.1 db/migrate/20111201095829_refactor_image_to_file.rb
rich-1.0.0 db/migrate/20111201095829_refactor_image_to_file.rb