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