Sha256: 25f276c81fca7a41047e8cbb44f54411ae5af3cd4f8a7348107a2ebbce3acd21

Contents?: true

Size: 312 Bytes

Versions: 5

Compression:

Stored size: 312 Bytes

Contents

class CreateBookmarks < ActiveRecord::Migration
  def self.up
    create_table :bookmarks do |t|
      t.integer :user_id, :null=>false
      t.text :url
      t.string :document_id
      t.string :title
      t.text :notes
      t.timestamps
    end
  end

  def self.down
    drop_table :bookmarks
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

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