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