Sha256: a5f842503298b861af40c6d71e5b4ab0dcabe5caf17d4e4a839b3a0ea43eb235

Contents?: true

Size: 988 Bytes

Versions: 39

Compression:

Stored size: 988 Bytes

Contents

class ActivityObjectProperties < ActiveRecord::Migration
  def up
    create_table :activity_object_properties do |t|
      t.integer :activity_object_id
      t.integer :property_id
      t.string  :type
      
      t.timestamp
    end

    add_index "activity_object_properties", "activity_object_id"
    add_index "activity_object_properties", "property_id"

    add_foreign_key "activity_object_properties", "activity_objects", :name => "index_activity_object_properties_on_activity_object_id", :column => :activity_object_id
    add_foreign_key "activity_object_properties", "activity_objects", :name => "index_activity_object_properties_on_property_id", :column => :property_id
  end

  def down
    remove_foreign_key "activity_object_properties", :name => "index_activity_object_properties_on_activity_object_id"
    remove_foreign_key "activity_object_properties", :name => "index_activity_object_properties_on_property_id"

    drop_table :activity_object_properties
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
social_stream-0.29.0 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.23.0 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.28.4 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.22.4 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.28.1 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.22.1 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.28.0 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.22.0 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.27.3 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.27.2 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.21.2 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.27.1 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.21.1 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.27.0 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.21.0 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.26.2 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.20.2 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.26.1 base/db/migrate/20120302215722_activity_object_properties.rb
social_stream-base-0.20.1 db/migrate/20120302215722_activity_object_properties.rb
social_stream-0.26.0 base/db/migrate/20120302215722_activity_object_properties.rb