Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix 0.2 002_post_versions_many_to_many migration

  • Loading branch information...
commit d2047f38739f64b421376fe27094d52cf7566819 1 parent 27925c0
Jesse Stuart jvatic authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 db/migrations/002_post_versions_many_to_many.rb
4 db/migrations/002_post_versions_many_to_many.rb
View
@@ -1,8 +1,8 @@
Sequel.migration do
up do
create_table(:post_versions_attachments) do
- foreign_key :post_version_id, :post_versions, :key=>[:id], :on_delete=> :cascade, :on_update=> :cascade
foreign_key :post_attachment_id, :post_attachments, :key=>[:id], :on_delete=> :cascade, :on_update=> :cascade
+ foreign_key :post_version_id, :post_versions, :key=>[:id], :on_delete=> :cascade, :on_update=> :cascade
index [:post_version_id], :name=>:index_post_versions_attachments_post_version
index [:post_attachment_id], :name=>:index_post_versions_attachments_attachment
@@ -10,8 +10,8 @@
end
create_table(:post_versions_mentions) do
- foreign_key :post_version_id, :post_versions, :key=>[:id], :on_delete=> :cascade, :on_update=> :cascade
foreign_key :mention_id, :mentions, :key=>[:id], :on_delete=> :cascade, :on_update=> :cascade
+ foreign_key :post_version_id, :post_versions, :key=>[:id], :on_delete=> :cascade, :on_update=> :cascade
index [:post_version_id], :name=>:index_post_versions_mentions_post_version
index [:mention_id], :name=>:index_post_versions_mentions_mention_id
Please sign in to comment.
Something went wrong with that request. Please try again.