class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string   :name
      t.string   :email
      t.string   :uid
      t.string   :organisation_slug
      t.string   :organisation_content_id
      t.string   :app_name
      t.text     :permissions
      t.boolean  :remotely_signed_out, default: false
      t.boolean  :disabled, default: false
      t.timestamps
    end
  end
end

class CreateUsers < ActiveRecord::Migration[5.1]
  def change
    create_table :users do |t|
      t.string   :name
      t.string   :email
      t.string   :uid
      t.string   :organisation_slug
      t.string   :organisation_content_id
      t.string   :app_name
      t.text     :permissions
      t.boolean  :remotely_signed_out, default: false
      t.boolean  :disabled, default: false
      t.timestamps
    end
  end
end

Fix ActiveRecord::Migration error in generated app
Fix ActiveRecord::Migration error in generated app

Rails 5 isn't happy that we inherited a migration directly from the `ActiveRecord::Migration` superclass. 

Instead, the new Rails convention is to inherit from the versioned Migration class, `ActiveRecord::Migration[5.1]`