Sha256: 33fc10625a7dd89b425d00ff05b03178a8033de6fcca294970e393eed3637ef3

Contents?: true

Size: 473 Bytes

Versions: 3

Compression:

Stored size: 473 Bytes

Contents

class AddIndexes < ActiveRecord::Migration
  def change
    add_column :rails_adserver_clicks, :rails_adserver_advertisement_id, :integer
    add_index :rails_adserver_clicks, :rails_adserver_advertisement_id, :name => 'rails_adserver_clicks_ad_id_index'
    add_column :rails_adserver_advertisements, :rails_adserver_adspace_id, :integer
    add_index :rails_adserver_advertisements, :rails_adserver_adspace_id, :name => 'rails_adserver_clicks_adspace_id_index'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_adserver-1.0.2 db/migrate/20120305203049_add_indexes.rb
rails_adserver-1.0.1 db/migrate/20120305203049_add_indexes.rb
rails_adserver-1.0.0 db/migrate/20120305203049_add_indexes.rb