Sha256: 984518315d2ee191c659c08284c56abeae541322eb537bbb1a53885268a74bd9
Contents?: true
Size: 474 Bytes
Versions: 4
Compression:
Stored size: 474 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
4 entries across 4 versions & 2 rubygems