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_grid-0.1.0.pre1 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_purchase_request-0.1.0.pre15 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_question-0.1.0.pre15 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_bookmark-0.1.2.pre23 db/migrate/055_create_bookmarks.rb
enju_flower-0.1.0.pre24 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre71 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_leaf-1.1.0.rc22 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre70 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_leaf-1.1.0.rc21 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre69 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_flower-0.1.0.pre23 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_leaf-1.1.0.rc20 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre68 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_purchase_request-0.1.0.pre14 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre67 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_leaf-1.1.0.rc19 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_flower-0.1.0.pre22 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_bookmark-0.1.2.pre22 db/migrate/055_create_bookmarks.rb
enju_biblio-0.1.0.pre66 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_leaf-1.1.0.rc18 spec/dummy/db/migrate/055_create_bookmarks.rb