Sha256: 8f3078a6e7bb2e2b2a7a0bb9458a9e3b0c2278ef26a2a6132273371c34f0ab15

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

class RemoveEditableFieldsFromBookmarks < ActiveRecord::Migration
  def self.up
    remove_column :bookmarks, :notes
    remove_column :bookmarks, :url
  end

  def self.down
    add_column :bookmarks, :notes, :text
    add_column :bookmarks, :url, :string
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-3.0.0pre6 lib/generators/blacklight/templates/migrations/remove_editable_fields_from_bookmarks.rb
blacklight-3.0.0pre4 lib/generators/blacklight/templates/migrations/remove_editable_fields_from_bookmarks.rb
blacklight-3.0.0pre3 lib/generators/blacklight/templates/migrations/remove_editable_fields_from_bookmarks.rb
blacklight-3.0pre2 lib/generators/blacklight/templates/migrations/remove_editable_fields_from_bookmarks.rb
blacklight-3.0pre1 lib/generators/blacklight/templates/migrations/remove_editable_fields_from_bookmarks.rb