Sha256: 7ee988cf1803fe9f2af5e8459e34f546c845f12e42cd09a9d10ea2f3824c8c84

Contents?: true

Size: 661 Bytes

Versions: 2

Compression:

Stored size: 661 Bytes

Contents

ActiveRecord::Schema.define :version => 0 do
  create_table :watchable_models, :force => true do |t|
    t.string :name
  end

  create_table :watcher_models, :force => true do |t|
    t.string :name
  end

  create_table :invalid_watchable_models, :force => true do |t|
    t.string :name
  end

  create_table :watchings, :force => true do |t|
     t.string :watchable_type
     t.integer :watchable_id
     t.string :watcher_type
     t.integer :watcher_id

     t.timestamps
  end

  add_index :watchings, [:watchable_type, :watchable_id]
  add_index :watchings, [:watcher_type, :watcher_id, :watchable_type, :watchable_id], :name => "access_watchings"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
make_watchable-0.0.3 spec/schema.rb
make_watchable-0.0.2 spec/schema.rb