Skip to content

Instantly share code, notes, and snippets.

@SoldierCoder
Created July 5, 2016 04:58
Show Gist options
  • Save SoldierCoder/367965ea41d6e45d8f1b73b4dad38655 to your computer and use it in GitHub Desktop.
Save SoldierCoder/367965ea41d6e45d8f1b73b4dad38655 to your computer and use it in GitHub Desktop.
class TagsTasks < ActiveRecord::Migration
def change
create_table :tags_tasks, id: false do |t|
t.belongs_to :tasks, index: true
t.belongs_to :tags, index: true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment