Adding hashtags
This commit is contained in:
parent
62292797ec
commit
48b9619439
33 changed files with 305 additions and 62 deletions
|
@ -0,0 +1,8 @@
|
|||
class CreateStatusesTagsJoinTable < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_join_table :statuses, :tags do |t|
|
||||
t.index :tag_id
|
||||
t.index [:tag_id, :status_id], unique: true
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue