Sha256: b845ffba92f106cb7ff674b02a6f980395b18843762f39732f9e61b5db6a1c6b
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
class CreateWatcher < ActiveRecord::Migration def self.up create_table :watchers do |t| t.integer :owner_id t.string :label t.integer :document_id t.timestamps end add_index :watchers, :document_id add_index :watchers, :label add_index :watchers, :owner_id add_index :watchers, :created_at end def self.down drop_table :watchers end end
Version data entries
4 entries across 4 versions & 1 rubygems