Sha256: 0a0aee3750dab36c889acaf3e496fb21d87aad3d3014890747d7243ad6c4bf4a

Contents?: true

Size: 269 Bytes

Versions: 19

Compression:

Stored size: 269 Bytes

Contents

class AddNonPkTable < ActiveRecord::Migration[4.2]
  def change
    create_table :projects_users, id: false do |t|
      t.integer :project_id
      t.integer :user_id
    end
    add_index :projects_users, :project_id
    add_index :projects_users, :user_id
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
rails_db-2.4.4 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.4.3 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.4.2 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.4.1 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.4.0 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.3.1 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.3.0 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.2.1 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.2.0 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.1.1 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.1.0 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.0.6 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.0.5 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.0.4 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
xplore-0.0.1.alpha test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.0.3 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.0.2 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.0.1 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
rails_db-2.0.0 test/dummy/db/migrate/20151027223149_add_non_pk_table.rb