Sha256: 7f24c3d2a557f7656d2c418eae0139db61ef51df4f7d1211d88f2adf59e9dd6a

Contents?: true

Size: 469 Bytes

Versions: 253

Compression:

Stored size: 469 Bytes

Contents

class CreateBookmarks < ActiveRecord::Migration
  def self.up
    create_table :bookmarks, :force => true do |t|
      t.integer :user_id, :null => false
      t.integer :manifestation_id
      t.text :title
      t.string :url
      t.text :note
      t.boolean :shared

      t.timestamps
    end

    add_index :bookmarks, :user_id
    add_index :bookmarks, :manifestation_id
    add_index :bookmarks, :url
  end

  def self.down
    drop_table :bookmarks
  end
end

Version data entries

253 entries across 248 versions & 10 rubygems

Version Path
enju_biblio-0.1.0.pre65 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_purchase_request-0.1.0.pre13 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_flower-0.1.0.pre21 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_bookmark-0.1.2.pre21 db/migrate/055_create_bookmarks.rb
enju_question-0.1.0.pre14 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre64 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_leaf-1.1.0.rc17 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_leaf-1.1.0.rc16 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre63 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre62 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_bookmark-0.1.2.pre20 db/migrate/055_create_bookmarks.rb
enju_bookmark-0.1.2.pre19 db/migrate/055_create_bookmarks.rb
enju_purchase_request-0.1.0.pre12 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre61 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_flower-0.1.0.pre20 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_purchase_request-0.1.0.pre11 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_question-0.1.0.pre13 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_bookmark-0.1.2.pre18 db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre60 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_leaf-1.1.0.rc15 spec/dummy/db/migrate/055_create_bookmarks.rb