Skip to content

Instantly share code, notes, and snippets.

@monkbroc
Created April 9, 2015 16:50
Show Gist options
  • Select an option

  • Save monkbroc/efe74cb2a6ca7215f765 to your computer and use it in GitHub Desktop.

Select an option

Save monkbroc/efe74cb2a6ca7215f765 to your computer and use it in GitHub Desktop.
class CreateTeamsUsersWithId < ActiveRecord::Migration
def change
create_table :team_user_tmps do |t|
t.belongs_to :team, :null => false, :index => true
t.belongs_to :user, :null => false, :index => true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment