Sha256: ac00ce0b672a7d22696a803bcb582cd40b97099a1ff2db21738a3dd09307bbb6

Contents?: true

Size: 468 Bytes

Versions: 69

Compression:

Stored size: 468 Bytes

Contents

class CreateBookmarks < ActiveRecord::Migration[4.2]
  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

69 entries across 69 versions & 7 rubygems

Version Path
enju_biblio-0.3.18 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.17 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.16 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.15 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_library-0.3.11 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_ndl-0.3.3 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_library-0.3.10 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.14 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_bookmark-0.3.2 db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.13 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.12 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.11 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_library-0.3.9 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_question-0.3.2 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.10 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_library-0.3.8 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.10.rc.3 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_biblio-0.3.10.rc.2 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_library-0.3.8.rc.2 spec/dummy/db/migrate/055_create_bookmarks.rb
enju_library-0.3.8.rc.1 spec/dummy/db/migrate/055_create_bookmarks.rb