Sha256: 0fa4a18191767acd09405635209be185add134e3422193cf9c0754a7c3b52785

Contents?: true

Size: 255 Bytes

Versions: 6

Compression:

Stored size: 255 Bytes

Contents

class RenameUrlToPathInFiles < ActiveRecord::Migration[5.0]
  def change
    rename_column :cas_media_files, :url, :path
    rename_column :cas_media_files, :title, :description
    add_column :cas_media_files, :media_type, :string, null: false
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 db/migrate/20170624024648_rename_url_to_path_in_files.rb
cas-cms-1.0.0.alpha1 db/migrate/20170624024648_rename_url_to_path_in_files.rb
cas-cms-0.1.3 db/migrate/20170624024648_rename_url_to_path_in_files.rb
cas-cms-0.1.2 db/migrate/20170624024648_rename_url_to_path_in_files.rb
cas-cms-0.1.1 db/migrate/20170624024648_rename_url_to_path_in_files.rb
cas-cms-0.1.0 db/migrate/20170624024648_rename_url_to_path_in_files.rb