X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ac7bb003ec9726d23d0a537f347c2dd4c8f7204a..6e3d183c40a6b5c0d01352531e00d577e314c98c:/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb diff --git a/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb b/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb index c23ed1f9f..4eab95ce7 100644 --- a/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb +++ b/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb @@ -1,10 +1,10 @@ -require 'migrate' +require "migrate" class AddJoinTableBetweenUsersAndChangesets < ActiveRecord::Migration def change - create_table :changesets_subscribers, id: false do |t| - t.column :subscriber_id, :bigint, null: false - t.column :changeset_id, :bigint, null: false + create_table :changesets_subscribers, :id => false do |t| + t.column :subscriber_id, :bigint, :null => false + t.column :changeset_id, :bigint, :null => false end add_foreign_key :changesets_subscribers, :users, :column => :subscriber_id, :name => "changesets_subscribers_subscriber_id_fkey"