X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c3e2e6462f293596aef5d5de18b0a173edc046c7..e108a13843f997a004db586978fb3014165e123c:/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..221a740c5 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,8 @@ -require 'migrate' - -class AddJoinTableBetweenUsersAndChangesets < ActiveRecord::Migration +class AddJoinTableBetweenUsersAndChangesets < ActiveRecord::Migration[4.2] 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"