logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20161105130633_create_statuses_tags_join_table.rb (214B)


  1. class CreateStatusesTagsJoinTable < ActiveRecord::Migration[5.0]
  2. def change
  3. create_join_table :statuses, :tags do |t|
  4. t.index :tag_id
  5. t.index [:tag_id, :status_id], unique: true
  6. end
  7. end
  8. end